I made this 100% by the web gui, but it don’t trigger it seems like.
It is for turning kitchen light on when movement and off after 5min else.
- id: '1558207527936'
alias: 'Kjøkken: Slå på lys ved bevegelse'
trigger:
- entity_id: binary_sensor.zwave_2_sensor
platform: state
to: 'On'
condition: []
action:
- alias: ''
data:
entity_id: light.zwave_21
service: light.turn_on
- id: '1558207722841'
alias: 'Kjøkken: Slå av lys ved ingen bevegelse'
trigger:
- entity_id: binary_sensor.zwave_2_sensor
for: '5'
platform: state
to: 'Off'
condition: []
action:
- data:
entity_id: light.zwave_21
service: light.turn_off
I can see the sensor entity is triggerd in entities . And this is a little conflicting: