it only work when i make a delay. and not when timer ends
choose:
- conditions:
- type: is_open
condition: device
device_id: 0adcfce1b970470194a034c52a177b
entity_id: binary_sensor.redback
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
sequence:
- service: timer.start
data:
duration: '0'
target:
entity_id: timer.redback
- delay:
hours: 1
minutes: 40
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id: switch.sonoff_10008ec68a
- service: notify.mobile_app_mobil
data:
message: Græsset er klippet.
- service: timer.finish
- conditions:
- type: is_not_open
condition: device
device_id: 0adcfce1b970470194a034c52a177b
entity_id: binary_sensor.redback
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
sequence:
- service: switch.turn_on
target:
entity_id: switch.sonoff_10008ec68a
- service: timer.finish
target:
entity_id: timer.redback
default: []
I have tried to put the 01:40:00 in the duration - but it dont work