Controlling a device based on 2 inputs

I was directed to this post by @krambriw from one that I just wrote last night here:

I'm sure you guys have considered this already, but with the instant hot water panel that I have recently built, I have my main engine (which runs in a NR function node) also trigger every one minute, like @mintgroen suggested , this is perfectly adequate for heating IMHO, however I also added 3x more triggers to run the engine more frequently:

  1. if a temp value changes
  2. if a pump status changes ie. someone overrode a pump from another interface
  3. if a user changes any config from the VueJS/uibuilder interface

With the above 3x triggers it means that the panel runs "instantly" from the users perspective ie.. if you change a temp setpoint or turn a zone on/off, you see the action executed within less than a second of making the change....

I have not read this entire thread, so apologies if you have covered the above off, but I thought I'd share this as it seemed like a good idea to me to implement it at the time.