32
113
545
高级会员
switch: - platform: gpio name: "房灯" id: led222 pin: GPIO2 inverted: true on_turn_on: if: condition: and: - switch.is_on: led666 - switch.is_on: led333 then: - switch.turn_on: fan888 - platform: gpio name: "风扇灯" id: fan888 pin: GPIO12 inverted: true - platform: gpio name: "玻璃灯" id: led333 pin: GPIO12 inverted: true - platform: gpio name: "吊灯" id: led666 pin: GPIO12 inverted: true
使用道具 举报
14
418
2774
金牌会员
ylilike 发表于 2022-10-30 16:16 这个延时不能太长的
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-18 09:38 , Processed in 0.428776 second(s), 25 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.