j1mco
1
Hi there, I’ve tried so many combinations over time for this automation, but I simply can not get it to work!
The automation turns the light off if I manually trigger it.
I’d appreciate any help at all!
- action:
- data:
entity_id: light.bathroom
service: light.turn_off
alias: Bathroom Motion Off
condition: []
id: '1511612473164'
trigger:
- entity_id: binary_sensor.motion_sensor_158d00016d585c
for: 00:05:00
platform: state
to: 'Off'
vladosam
(Vladimir)
2
How i hate to see these automations made with automation editor. It’s all messed up. Here is my working automation:
- id: '1002'
alias: 'light off bathroom'
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_158xxxxx
from: 'on'
to: 'off'
for:
minutes: 3
action:
- service: light.turn_off
entity_id:
- light.bathroom
j1mco
3
I’ll give that a go, thank you!
sjee
4
There is an example in the docs and you should check the log.
j1mco
5
All works now. It was indeed the order of the syntax generated by automation editor! Now to edit all the others…