Hello. I’m looking for help on an esp32_relay x2 (303e32dc210) board. This project is to open and close two garage doors independently of each other and to signal the state of each garage door; if it’s in the open or closed position via some magnets and onboard sensors. I think I’ve managed to find out that GPIO 16 & GPIO 17 control the two relays. All of this will be controlled via Home Assistant. I’ve compiled and uploaded some yaml that allows me to control the 1st relay via GPIO16 and it appears as an integration in Home Assistant. Thanks in advance for any help that can be provided.
Questions:
1.) Which is the sensor GPIO’s for this board. I believe I need four of them; two for each garage door.
2.) Are GPIO 16 & 17 the correct ones for the relays?
3.) When I trigger the relay for Garage Door 1, I don’t get any continuity on my multi-meter nor do I get a clicking sound, so maybe GPIO16 &17 aren’t the correct ones for the relay.
4.) I’d like to add a temp / humidity sensor to the board as well, but I haven’t investigated the make / model or GPIO for this.
yaml code
switch:
- platform: template
name: "Garage Door 1"
id: garage_door_1
optimistic: true
- platform: gpio
pin: GPIO16
name: "Door relay"
id: door_relay
internal: true
on_turn_on:
- delay: 250ms
- switch.turn_off: door_relay
binary_sensor:
- platform: template
name: "Garage Door 1 Is Closed"
id: is_closed
device_class: problem
- platform: template
name: "Garage Door 1 Is Open"
id: is_open