I have two motion sensors linked via an rf bridge. The sensors seem to work ok and the toilet light work great and goes on and of at the correct timings. The back door one however does not work. Below is my automation. Anyone shed some light on what the problem may be. Thanks
-
alias: Turn on toilet light when there is movement
trigger:
platform: state
entity_id: binary_sensor.toilet_motion
to: ‘on’
action:
service: homeassistant.turn_on
entity_id:
- light.tradfri_bulb_2 -
alias: Turn off toilet light 1 minute after last movement
trigger:
platform: state
entity_id:
- binary_sensor.toilet_motion
to: ‘off’
for:
minutes: 1
action:
service: homeassistant.turn_off
entity_id:
- light.tradfri_bulb_2 -
alias: Turn on backdoor light when there is movement
trigger:
platform: state
entity_id: binary_sensor.back_door_motion
to: ‘on’
action:
service: homeassistant.turn_on
entity_id:
- light.tradfri_bulb -
alias: Turn off backdoor light 1 minute after last movement
trigger:
platform: state
entity_id:
- binary_sensor.back_door_motion
to: ‘off’
for:
minutes: 1
action:
service: homeassistant.turn_off