40
277
3229
论坛元老
使用道具 举报
17
400
2833
金牌会员
175
462
3832
kay7758 发表于 2017-9-3 13:16 采用多个触发条件 1.感应到人
- alias: switch.sonoff_4_on trigger: platform: state entity_id: binary_sensor.motion_sensor_158d00016db923 from: 'off' to: 'on' condition: condition: numeric_state entity_id: sensor.illumination_7811dca47fae below: 200 action: - service: switch.turn_on entity_id: switch.sonoff_4
automation: trigger: # first trigger - platform: time minutes: 5 seconds: 00 # our second trigger is the sunset - platform: sun event: sunset
2794
7620
超级版主
我就是六神
kay7758 发表于 2017-9-3 13:18 还有个建议就是采用亮度传感器,亮度低于设定值才会开灯,当你的灯手动开了,亮度不会低于设定值,这样也不 ...
本版积分规则 发表回复 回帖后跳转到最后一页
教程高产大神,简直就是为了教程而生~
经常参与各类话题的讨论,发帖内容较有主见
经常在论坛发帖,且发帖量较大
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-11 17:44 , Processed in 0.162263 second(s), 28 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.