Hi.
I bought a swing gate opener which included a SGC01 wifi smart control. I opened it up and it’s controlled by an ESP12 I believe. I managed to flash it with EspHome, but I am struggeling on controlling the relay.
I tried to do a continuity check between COM port on relay and the different pins on the ESP without luck.
Tried a couple of “random” pin configurations in EspHome, but if I choose the wrong one I have to solder back and re-flash. Any tips on how to find the correct pin for controlling the relay?
Figured it out. For future refernce if it can help others, this is the pins for momentary switch and door sensor for this board
esp8266:
board: esp12e
switch:
- platform: gpio
pin: 15
id: relay
name: "Swing gate"
icon: "mdi:gate"
on_turn_on:
- delay: 500ms
- switch.turn_off: relay
binary_sensor:
- platform: gpio
device_class: opening
# filters:
# - invert: depending on if reed switch is normally open or normally closed
name: "Swing gate status"
pin:
number: 16
mode: INPUT
1 Like
Do you know what the header pinouts are on the board to be able to flash it?
Thanks
Never mind, I’ve worked it out