Timer function

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

You set the timer duration to 0. How could it run…?

But I can’t make a lot of sense from your automation as well, sorry. :slight_smile:

default is 0 , but i have change to 01:40:00 same output
but when i set a delay it seems to work