12V 16 Channel Wifi Relay Module Onboard ESP8266

hi,

got this board:

did anyone ever managed to get esp config for it to work on hass ?
i have tried 16xRelay with ESP12F Onboard and two Shift Register (74HC595)
but no luck, buttons show on hass but relays do not switch,

# Example configuration entry

sn74hc595:

  - id: 'sn74hc595_hub'

    data_pin: GPIO14

    clock_pin: GPIO13

    latch_pin: GPIO12

    oe_pin: GPIO05

    sr_count: 2

# Individual outputs

switch:

  - platform: gpio

    name: "SN74HC595 Pin #0"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 0

      number: 0

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #1"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 1

      number: 1

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #2"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 2

      number: 2

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #3"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 3

      number: 3

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #4"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 4

      number: 4

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #5"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 5

      number: 5

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #6"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 6

      number: 6

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #7"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 7

      number: 7

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #8"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 8

      number: 8

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #9"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 9

      number: 9

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #10"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 10

      number: 10

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #11"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 11

      number: 11

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #12"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 12

      number: 12

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #13"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 13

      number: 13

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #14"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 14

      number: 14

      inverted: false

  - platform: gpio

    name: "SN74HC595 Pin #15"

    pin:

      sn74hc595: sn74hc595_hub

      # Use pin number 15

      number: 15

      inverted: false

any suggestion i would apricate,

thank you
m

Have you got a datasheet?

unfortunately not, it is exactly this board Lesson 68, Home Automation: How to control 16 Channel Relay module using Arduino control 16 AC loads - YouTube

but with esp8266 slapped on top of it,

No idea, if you’ve managed to do it already, I’ve bought it some time ago, and just received it. A little bit of fiddling, and I’ve managed to work it out. here’s my code on pastebin:

Good luck :slight_smile:

1 Like

Hi,

I have two of these boards as well and succesfully got them in home assistant.

For those getting these boards, to get them into flash mode connect 3v, ground, rx and tx. Note i wired RX on my adapter to R on the board.
In addition to that make sure the GPIO0 is pulled to ground upon boot. This was indicated as 0 on my board. Remove the ground from GPIO0 after boot and then start the flash process

I used these platform settings:
platform: esp8266
board: esp12e

Combined with Woferon’s esphome code.

It needed a moment to boot up so give it a minute or so before hitting the api link button in HA.