vindaalex / multizone-thermostat

This is a home assistant custom component. It is a thermostat including various control options, such as: on-off, PID, weather controlled. The thermostat can be used in stand-alone mode or as zoned heating (master- satellites).
33 stars 6 forks source link

Feature request: Failsafe for heating #26

Closed stomko11 closed 5 months ago

stomko11 commented 6 months ago

I have been using your thermostat for last 2 winters and it has been working quite well for me. Back in the days, I tried using master thermostat too, but it wasn't ideal. For zones, I am using on/off valves that take 2-5 minutes to open/close. I found out that master was not really in sync with zone valves. As a result, master would turn on when all of the zones were closed, etc., so I stopped using master and use simple automation to check every 5 minutes if there is need for heat from any of the zones, and if yes, turn on heater.

Now it looks like master thermostat has evolved and I am tempted to try that. However there is a thing that i am not sure how to approach - and that is failsafe mechanism.

To signal my heat pump, I am using dry relay. On that relay directly, I configured auto-off feature (15 minutes) as a failsafe. Means my automation runs every 5 minutes, and if there is need for heat, it sends switch.turn_on to relay regardless if it is on. As a result, relay receives that "on" signal and does not turn off for at least another 15 minutes (or if turned off intentionally sooner). If something would fail on HA end, relay would turn off after 15 minutes. Since master is sending ON only when there is need for heat, and OFF when there is not anymore, my failsafe would not be working anymore. I assume it would turn off.

Idea: Instead of just turning on/off, maybe there could be configurable parameter for master - to force sending on (or even off) in configurable interval. That would ensure that ON signal is sent constantly every X minutes. If something would happen on HA side, heating would turn off on its own latest in 15 minutes.

vindaalex commented 6 months ago

Unfortunately changes to the pwm routine in the thermostat are not that easy to implement. But I think you might still be able to get it working as used currently.

Working principle:

Would this allow you to keep the auto-off time?

Scenarios:

stomko11 commented 6 months ago

I am not a programmer, so I may see some things easier than they really are... But I did not have in mind changing anything in regards to PWM. That is all OK and works as expected. My only question was around - if master goes to ON state, is there a way to send "on" signal to switch defined in master thermostat in defined interval, as long as master is ON? Sure, I can work around it with simple automation that would be sending "on" every X minutes when master's state goes to HEATING and as long as it is in HEATING state to prevent relay going off. It would be just nicer to not rely on external automation if such feature could be built in.

vindaalex commented 6 months ago

Unfortunately that won't be easy to implement. I'm afraid it will trigger and interfere with mother running routines

stomko11 commented 6 months ago

OK, thanks for the effort anyway. I will try to set up the master and post back. It is possible that even if relay will auto turn off after 15 minutes, the fact that associated master thermostat is in heating state may turn it back on immediately. Alternatively, i can work around it by simple automation.

Will post back with result