32
87
749
高级会员
联锁 在某些情况下,有必要确保两个输出永远不会同时处于活动状态。ESPHome 具有防止两个 GPIO 开关同时处于活动状态的功能,称为互锁。只需为“联锁组”中的每个开关interlock提供一个选项,其中包含该组中所有开关的列表。 # Example configuration entry # Prevent relay #1 and relay #2 from being activated at the same time. switch: - platform: gpio pin: GPIO25 name: "Relay #1" id: relay1 interlock: [relay2] - platform: gpio pin: GPIO26 name: "Relay #2" id: relay2 interlock: [relay1]
- platform: gpio pin: GPIO26 name: "Relay #2" id: relay2 interlock: [relay1]
使用道具 举报
1
79
979
五千万啊 发表于 2022-5-10 08:33 switch: - platform: gpio name: "开关1"
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-10 13:00 , Processed in 1.069233 second(s), 25 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.