Evening all (well, in the UK anyways)
Thanks in advance…
I’m trying to turn off my Tado Hot Water when a leak is detected however the action Turn off Hot Water results in an error:
device_id: e827d97f615f43d1f85454e8cd729f89
domain: water_heater
entity_id: water_heater.hot_water
type: turn_off
The error message box displayed when I manually run the action is:
Error running action
Unknown error
Anyone got any ideas?
Can you post the whole automation or script? Is it possible it’s not handling a manual invocation correctly?
Sure thing…
alias: Water Leak Spare Room
description: ""
trigger:
- type: moist
platform: device
device_id: f5983953b27e419afe2e1fe34a858a55
entity_id: binary_sensor.lumi_lumi_sensor_wleak_aq1_iaszone
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.master_manual_override
state: "off"
action:
- device_id: 02ceb0e98dd81369b5aa79d5b7710514
domain: climate
entity_id: climate.heating
type: set_hvac_mode
hvac_mode: "off"
- device_id: e827d97f615f43d1f85454e8cd729f89
domain: water_heater
entity_id: water_heater.hot_water
type: turn_off
- if:
- condition: zone
entity_id: person.will
zone: zone.home
then:
- repeat:
until:
- type: is_not_moist
condition: device
device_id: f5983953b27e419afe2e1fe34a858a55
entity_id: binary_sensor.lumi_lumi_sensor_wleak_aq1_iaszone
domain: binary_sensor
for:
hours: 0
minutes: 4
seconds: 0
sequence:
- service: media_player.volume_set
data:
volume_level: 0.7
target:
device_id: c7c16c7647cee323f35a64245cf457b6
- type: turn_off
device_id: c7c16c7647cee323f35a64245cf457b6
entity_id: switch.everywhere_do_not_disturb_switch
domain: switch
- device_id: cc5faa684848eb94c370e7a3dffff548
domain: mobile_app
type: notify
title: Water Leak!
message: There's a water leak in the spare room
- service: notify.alexa_media
data:
message: Leak detected in spare room. Heating and hot water suspended.
target: media_player.bedroom
data:
type: tts
- service: notify.alexa_media
data:
message: Leak detected in spare room. Heating and hot water suspended.
target: media_player.office
data:
type: tts
- service: notify.alexa_media
data:
message: Leak detected in spare room. Heating and hot water suspended.
target: media_player.spare_room
data:
type: tts
- service: notify.alexa_media
data:
message: Leak detected in spare room. Heating and hot water suspended.
target: media_player.echo_show_15
data:
type: tts
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
else:
- repeat:
until:
- type: is_not_moist
condition: device
device_id: f5983953b27e419afe2e1fe34a858a55
entity_id: binary_sensor.lumi_lumi_sensor_wleak_aq1_iaszone
domain: binary_sensor
for:
hours: 0
minutes: 9
seconds: 0
sequence:
- device_id: cc5faa684848eb94c370e7a3dffff548
domain: mobile_app
type: notify
title: Water Leak!
message: There's a water leak in the spare room
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
mode: single
Thanks.
Well, I don’t see anything obviously wrong with the automation.
How do you know the error is caused by that step? Can you share the exact message from the log (i.e., home-assistant.log)? Are there any other warnings or errors that happen around the same time that might be related?
Have you tried calling the service manually via the services page? Or tried creating a script that has nothing but that in it to narrow down the cause?
Have you tried using the water_heater.turn_off
service instead of the device type service?
- service: water_heater.turn_off
entity_id: water_heater.hot_water
sib321
(Si)
August 15, 2023, 9:51pm
5
I’ve got the same issue and the great suggestion of using water_heater.turn_off
service sadly didn’t work for me. I’ll post if I find asoloution.