Smart Home Automation Forum
B16M Digital Input - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Schematic and diagram (https://www.kincony.com/forum/forumdisplay.php?fid=33)
+--- Thread: B16M Digital Input (/showthread.php?tid=7211)



B16M Digital Input - Dutchkiwi - 12-11-2024

I'm using a B16M to control a home automation project. It's using a 24V power supply and the B16M is switching a set of 24V relays that switch the 230V mains.
I can switch the relays via Home Assistant and via the ESPHome dashboard but I can't switch the relays using the digital inputs. If I ground a digital input pin I can see the state change on the Home Assistant and ESPHome dashboads but the relay dose not operate.
I am using the B16M ESPHome yaml for home assistant code from the forum which I haven't changed.
Regards


RE: B16M Digital Input - admin - 12-12-2024

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
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