Need help: action delay isn't working (solved)

hi there,
I’m a newbie. Read around a lot but have no idea why the delayed action in the configuration isn’t running. Here es the code:

automation:
  - alias: 'test - heiz-pump-an'
    trigger:
      - platform: time
        minutes: '/45'
        seconds: 00
    condition:
      condition: time
      after: '05:44'
      before: '23:00'
    action:
      - service: homeassistant.turn_on
        entity_id: zwave.zw02plugtest
      - delay: '00:15:00'
      - service: homeassistant.turn_off
        entity_id: zwave.zw02plugtest

the trigger is ok, but the device doesn’t turn off after 15 minutes.

thx

Try without quotes or maybe try

minutes: 15

It was a mix from script syntax / YAML syntax and a wrong entity_id. Now I choosed the suitable entity_id from the developers section in FE an here is the working automation - section from configuration.yaml:

automation:
  - alias: 'test - heiz-pump-an'
	trigger:
	  - platform: time
		minutes: 45
		seconds: 00
	condition:
	  - condition: time
		after: '05:44'
		before: '23:00'
	action:
	  - service: homeassistant.turn_on
	    entity_id: switch.zw02plugtest_switch
      - delay:
          minutes: 15
      - service: homeassistant.turn_off
	    entity_id: switch.zw02plugtest_switch  

but now I am struggling with the z-wave range. I’ts quite poor and I tested it for hours an hours. Now I decided to change the controller vom z-wave.me to z-wave Aeon Labs USB-Stick GEN5. Next days I’ll see if I’ll gain some meters to get a suitable homeautomation.

1 Like