176
2641
8867
元老级技术达人
mimikiki 发表于 2025-3-8 16:32 也是初学者,提供一点理解 1.这样接最简单,因为esp8266有内部上拉电阻,用 mode: INPUT_PULLUP开启,默认 ...
binary_sensor: - platform: gpio name: relay_toggle pin: number: GPIO12 mode: input: true pullup: true id: gpio_light_id on_press: then: - light.toggle: id: light_id on_release: then: - light.toggle: id: light_id
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-22 16:40 , Processed in 0.265629 second(s), 21 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.