32
119
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
80
975
五千万啊 发表于 2022-5-10 08:33 switch: - platform: gpio name: "开关1"
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-11-26 01:24 , Processed in 0.108689 second(s), 28 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.