This code used to work:
- id: '1679873069852'
alias: Notification - Water Leak - Kitchen sink
description: ''
triggers:
- type: moist
device_id: ffc7d99ac2bbbc8ebcc955d5e1b86618
entity_id: 5c18c7a0fe5dd3a79e95dd394f8d298f
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: switch.turn_on
target:
entity_id: switch.titan_water_valve_actuator
data: {}
- action: notify.mobile_app_jeffs_s25
data:
message: TTS
data:
tts_text: Water leak at home
media_stream: alarm_stream_max
ttl: 0
priority: high
- action: notify.mobile_app_aprils_pixel_9
data:
message: TTS
data:
tts_text: Water leak at home
media_stream: alarm_stream_max
ttl: 0
priority: high
- action: notify.mobile_app_jeffs_s25
data:
message: Water detected under the kitchen sink
title: WATER!!!
data:
sticky: 'true'
notification_icon: mdi:water
color: red
actions:
- action: TURN_WATER_ON
title: Turn water on
- action: notify.mobile_app_aprils_pixel_9
data:
message: Water detected under the kitchen sink
title: WATER!!!
data:
sticky: 'true'
notification_icon: mdi:water
color: red
actions:
- action: TURN_WATER_ON
title: Turn water on
- action: tts.google_say
data:
cache: false
entity_id: media_player.ha_tts_group
message: ALERT! There is a water leak under the kitchen sink!
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: TURN_WATER_ON
timeout:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
continue_on_timeout: false
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- action: switch.turn_off
target:
entity_id: switch.titan_water_valve_actuator
data: {}
mode: single
I’m migrating my Zigbee devices from one coordinator to another, and from ZHA to Z2M. As such, I was getting the leak sensors wet so they would report their various states.
Sure enough, this triggered the mobile alerts and the TTS announcement, but then… The water wasn’t turned off. I figured something was wrong with the valve since I recently migrated my z-wave coordinator to a PoE one as well. Made a mental not to check later.
Well, I checked. The trace timeline shows that the automation started at 16:10:04. It stopped and waited the requisite 5 minutes, and when no one pressed the notification, it aborted after a total runtime of 301.71 seconds. Seems right.
However - the history on the Titan shows otherwise, and instead shows that it was triggered to turn on at 16:10:05, and then at 16:10:06 it was triggered to turn off again, both triggered by the automation:
Titan Water Valve Actuator turned off triggered by automation Notification - Water Leak - Kitchen sink triggered by state of Kitchen Sink Leak Moisture
16:10:06 - 2 hours ago
Titan Water Valve Actuator turned on triggered by automation Notification - Water Leak - Kitchen sink triggered by state of Kitchen Sink Leak Moisture
16:10:05 - 2 hours ago
I’m at a loss here. Was there a breaking change I missed somewhere? ![]()