I was able to flash creating the bin file from esphome in HA and the esphome-flasher tool on my mac. I have used esp8266/esp01_01m and esp8266/esp8285. The generic firmware loads and the board boots up onto my network and I can view the log from esphome/HA.
I have tried the configurations posted online as well as that of another brand 4ch/wifi board I orderred a a few months ago that works fine. For some reason these configs don’t work. I can turn on the blue light, the buttons on the board switch the relays, but I cant turn them on/or from HA.
Sorry.
I didn’t see that it was a board with an ESP on it. I thought it was a relay board connected to an ESP.
The documentation you are following is for an Sonoff relay board, the one you linked to on Amazon is not an Sonoff.
You probably need four more pins in the configuration.
The ones you have (luckily) was correct given that it was the configuration of a different board.
Perhaps you can follow the traces on the board, or guess with another four pins and see if something happens.
Unlike the sonoff this has a physical button to change the behavior of the relays. The binary sensors correspond to the leds on the sonoff not the action of the switch.
To control the relays the binaries are not necessary, I’d comment them out for now and focus on the switches. I would also try the pins that you have assigned to the binaries as switches. Typical relays, the led and relay are tied together and not independent like the sonoff.
i just bought the same units, can I ask how did you manage to flash them ?
I’ve flashed a lot of different devices, and I just tested my FTDI usb adapter AND cable by reflashing another sonoff device.
Now I’m pretty sure I’m wiring it up correctly (GVRT on the J6), booting while keeping the CH1 button pressed (and the Wifi blue light is not blinking when booting like that), still esphome-flasher can’t talk to the device Unexpected error: ESP Chip Auto-Detection failed: Failed to connect to Espressif device: No serial data received.
Like it wasn’t in flash boot mode.
Am I missing something here ?