不知道是Automation写得有问题还是有什么别的步骤没做导致的,改了挺多遍也没改变,图和代码如下,求帮助~~~~
file:///F:/%E6%A0%91%E8%8E%93%E6%B4%BE/%E8%AE%BA%E5%9D%9Bwent/1511938602(1).jpg
automation:
- alias: 'Turn on the Light when the Swich Close'
hide_entity: True
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d0001dac8e4
from: 'on'
to: 'off'
condition:
- condition: time
after: '14:00:00'
before: '23:00:00'
action:
- service: light.turn_on
entity_id: light.desk_light
|