I have an automation for irrigating my garden. When the level of a soil moisture sensor gets too low, it’s supposed to open a valve for 30 min then close it. Here is the YAML:
alias: Garden Irrigation
description: ""
triggers:
- type: humidity
device_id: 2e973d8f812a29b0c67148e21fe923d5
entity_id: 996b089adb801311519d048501e555ed
domain: sensor
trigger: device
below: 75
conditions: []
actions:
- type: turn_on
device_id: 403255d471db7a0291c49472312c738b
entity_id: e00e2b8696609b936d2421c77c973acf
domain: switch
- action: notify.mobile_app_pixel_9_pro_xl
metadata: {}
data:
message: Garden irrigation start
- action: assist_satellite.announce
metadata: {}
data:
message: Garden irrigation start
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- type: turn_off
device_id: 403255d471db7a0291c49472312c738b
entity_id: e00e2b8696609b936d2421c77c973acf
domain: switch
mode: single
So this triggered yesterday morning, and I went out this morning and the irrigation was still running. I checked the switch for that relay on the card, and it was still in the on position.
So then I looked at the logs. There was an event for when the relay was turned on by the automation, but there was no event for it being turned off 30 min later. Have I done something wrong with the configuration?