Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B16M Digital Input
#1
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


Attached Files Image(s)
   
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)