Hi, I am having difficulty implementing a simple task. That is to have a button trigger the boiler and hot water to switch off. I have a hive heating system which I can successfully switch the heating from “scheduled” to “off” and back again using the generic hvac functions, however the script fails on the hot water “on / off”.
I get an error “leave_home: Error executing script. Unexpected error for call_service at pos 2:”
The detailed error appears at this step:
" File “/usr/src/homeassistant/homeassistant/components/water_heater/init.py”, line 268, in turn_away_mode_on
raise NotImplementedError()
NotImplementedError"
I assumed I had to use the generic solution as the hive integration appears not to have a way of triggering “on / off” only “boost on / off”.
Any help or suggestions gratefully received.
Thanks
- service: climate.set_preset_mode
target:
entity_id: climate.thermostat_3
data:
preset_mode: "away" # or away_mode, check the entity's attributes in the Developer tools States menu.
Hi Troon, yes I do and the climate service only changes the heating mode, not hot water.
Since I posted the question I have found a solution to my problem. Instead of “water_heater.set_away_mode” which does not work. I found another service “water_heater.set_operation_mode” which does work and has the same effect. Its modes are “eco”, “on” and “off”.
Thanks to Tom_I and Troon for their assistance, hopefully this post will be useful to anyone else setting up hot water controls in HA.
Thanks for sharing here. I also have a hive system. Out of interest do you get anything useful from the water heater component in terms of logging?
For me this is off most of the time and occasionally gets boosted.
I couldnt see any history tracking capability, eg know how and when it was was boosted. Do others have this capability built in?
Hi Dave,
I get a couple of entities in addition to water_heater.hot_water. sensor.hotwater_mode - provides historical mode ie Scheduled or Manual sensor.hotwater_state - shows whether hot water heater is on or off. Mine is set to come on for an hour in the morning and an hour in the evening for example. So history on the entity shows a time graphic.