Hi, I’m just wondering if anyone can help me on this, i have a relay that i bought (Link to my relay), that I’m trying to control with an esp32 wroom (Link to my ESP32), and i just cant seem to get it working, i thought that the relays were pretty straight forward as I’ve implemented a few single channel ones without an issue
I’ve just added this to the bottom of the yaml, i haven’t added anything else just left it as the standard yaml that is generated
switch:
- platform: gpio
name: "Sonos"
pin: 27
- platform: gpio
name: "Record Player"
pin: 26
- platform: gpio
name: "3D Printer"
pin: 25
- platform: gpio
name: "Preamp"
pin: 33
I cant see any issue in the logs, it connects to wifi fine, i turn it on and off in home assistant while checking the logs and it seems to be triggering fine also
[09:23:27][I][ota:117]: Boot seems successful, resetting boot loop counter.
[09:23:27][D][esp32.preferences:114]: Saving 1 preferences to flash...
[09:23:27][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[09:29:51][D][switch:012]: '3D Printer' Turning ON.
[09:29:51][D][switch:055]: '3D Printer': Sending state ON
[09:29:56][D][switch:012]: 'Preamp' Turning ON.
[09:29:56][D][switch:055]: 'Preamp': Sending state ON
[09:29:58][D][switch:012]: 'Record Player' Turning ON.
[09:29:58][D][switch:055]: 'Record Player': Sending state ON
[09:30:00][D][switch:012]: 'Sonos' Turning ON.
[09:30:00][D][switch:055]: 'Sonos': Sending state ON
[09:30:08][D][switch:016]: '3D Printer' Turning OFF.
[09:30:08][D][switch:055]: '3D Printer': Sending state OFF
[09:30:10][D][switch:016]: 'Preamp' Turning OFF.
[09:30:10][D][switch:055]: 'Preamp': Sending state OFF
[09:30:12][D][switch:016]: 'Record Player' Turning OFF.
[09:30:12][D][switch:055]: 'Record Player': Sending state OFF
[09:30:13][D][switch:016]: 'Sonos' Turning OFF.
[09:30:13][D][switch:055]: 'Sonos': Sending state OFF
any help would be great thankyou