还有问题,有时候反应很慢,有时候根本不执行,不知道是因为与米家冲突还是因为我为了homekit显示yeelight重复添加了灯
- alias: auto_desklight_on
initial_state: true
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_158d0001d6676a
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: light.yeelight_rgb_34ce008b4b15
state: 'off'
- condition: state
entity_id: binary_sensor.motion_sensor_158d000171ba5d
state: 'on'
- condition: time
after: '17:00:00'
before: '06:00:00'
action:
- service: light.turn_on
entity_id: light.yeelight_rgb_34ce008b4b15
|