My desired behaviour is that a press activates the fan (actually a Shelly 1 relay) for 15 minutes, a double press 30 minutes and a triple press 60 minutes. Holding the button turns the fan off.
I built the below script using the visual editor. I triggered a turn off action by holding the button but the fan stays on. I've tried triggering the turn off action with a different button to rule out 'hold' being the issue and it still wouldn't turn off.
Is this expected behaviour? Is there a better way?
Thanks!
- type: turn_on
device_id: abc123
entity_id: def456
domain: switch
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
- type: turn_off
device_id: abc123
entity_id: def456
domain: switch
alias: Bathroom Fan 15mins
description: ""