See follow-up in the reply below, would appreciate if someone can explain why my automation does not work in the new web configuration.
Sometime I converted my automation.yaml file in Home Assistant into the new configuration via the home assistant web interface. A new file automations.yaml was created with IDs for every automation.
One of my automation is that my front door switch turn on in case there is movement in my garden. That works fine ! However it idea is that after 3 minute after the last movement the light switches off. After the conversion the light directly switches of when there is no movement anymore. The configuration in the automisation(s).yaml is exactly the same, but it seems that in the new interface this need to be done different.
What should Í do different ?
The definition on the web interface is :
Trigger Type
state
Entity Id
binary_sensor.voordeur_beweging
From
To
off
For: {
"minutes": 3
}
The current automisations.yaml file look like this.
- id: tonfrlght
alias: Turn on front light when there is movement
trigger:
platform: state
entity_id: binary_sensor.voordeur_beweging
to: 'on'
condition:
condition: state
entity_id: sun.sun
state: below_horizon
action:
service: homeassistant.turn_on
entity_id: switch.voordeur
- id: tofffrlght
alias: Turn off front door light 5 minutes after last movement
trigger:
- entity_id: binary_sensor.voordeur_beweging
for:
minutes: 3
platform: state
to: 'off'
action:
- entity_id: switch.voordeur
service: homeassistant.turn_off