本帖最后由 scboy 于 2019-9-17 00:59 编辑
之前重新安装了下系统,按照国际惯例,配置好所有的界面和插件后,写了几个简单的自动化,发现有问题,人体传感器在指定时间范围内,感应到人经过居然不能触发开灯这个动作,于是乎开始用排除法来排除,发现是条件部分的时间,我去掉条件,能正常感应并触发,添加后感应到人而不能触发开灯,请大佬们帮看看,谢谢……
- id: '1568213391565'
alias: 自动打开过道灯 亮度100% 无人经过180秒后关闭(19:30-23:30)
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e0a9d8
from: 'off'
platform: state
to: 'on'
condition:
condition: time
after: '19:30:00'
before: '23:50:00'
action:
- data:
brightness: '250'
entity_id: light.xiaomi_philips_smart_led_ball
service: light.turn_on
- delay: 00:03:00
- data:
entity_id: light.xiaomi_philips_smart_led_ball
service: light.turn_off
|