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).
35 stars 6 forks source link

set_preset_mode service not working properly #28

Closed stomko11 closed 7 months ago

stomko11 commented 9 months ago

I am trying to automate few things. I managed to use service multizone_thermostat.set_preset_mode to set the preset on the master thermostat, and that gets synced to all the satellites. However i am not having luck with heat or off. Example I used:

service: multizone_thermostat.set_preset_mode
data:
  hvac_mode: heat
  preset_mode: none
  entity_id: climate.master

or

service: multizone_thermostat.set_preset_mode
data:
  hvac_mode: off
  preset_mode: none
  entity_id: climate.master

When running off against master, none of satellite thermostats turns off. Also, if I turn one of them off, and then run the heat against master, no action is taken, and the one that was off stays off. Only changing presets works OK. Is this desired behavior and this service shall be used only for presets? For on/off, should I keep using generic climate service? Thanks

vindaalex commented 9 months ago

Calling set_preset_mode with below would change the preset for the hvac mode "off". It will not change the hvac mode itself.

service: multizone_thermostat.set_preset_mode
data:
  hvac_mode: off
  preset_mode: none
  entity_id: climate.master

To change the hvac mode you could use climate.set_hvac_mode

service: climate.set_hvac_mode
data:
  entity_id: climate.master
  hvac_mode: heat

For the master the hvac_mode differs in behaviour compared to the set_preset. set_preset forwards the preset to all satellites while set_hvac_mode would change the master hvac mode and:

vindaalex commented 7 months ago

Closing this issue. hope above answers your question. If not, please open it again.