12-12-2024, 12:34 AM
if you are using ESPHome yaml for home assistant. you need config ymal let INPUT toggle OUTPUT. you can see this yaml demo, it use by KinCony KC868-A8S board, but as same as your B16M. just add line for INPUT toggle OUTPUT.
https://www.kincony.com/forum/showthread.php?tid=1946
https://www.kincony.com/forum/showthread.php?tid=1946
Code:
binary_sensor:
- platform: gpio
name: "input1"
on_press:
then:
- switch.toggle: light1
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true