Good Morning.
I have an ESP32S Dev Kit C V4 here and would like to use it to implement my gate control.
(Including outside buttons, key switches and so on).
I have built a test circuit and everything actually works, except for my STOP relay.
The code is this one:
switch:
- platform: gpio
name: "TOR2 Relay AUF"
pin: GPIO4
id: TOR2_Relay_AUF
inverted: true
restore_mode: ALWAYS_OFF
- platform: gpio
name: "TOR2 Relay STOP"
pin: GPIO16
id: TOR2_Relay_STOP
inverted: true
restore_mode: ALWAYS_OFF
- platform: gpio
name: "TOR2 Relay ZU"
pin: GPIO17
id: TOR2_Relay_ZU
inverted: true
restore_mode: ALWAYS_OFF
In all the sources of information I found, there were no specifics regarding PIN 16.
Therefore, I am very surprised that this pin is not pulled to ground, although it works fine with PIN 4 and 17.
My log says:
[07:34:54][D][switch:013]: 'TOR2 Relay STOP' Turning ON.
[07:34:54][D][switch:056]: 'TOR2 Relay STOP': Sending state ON
[07:34:55][D][switch:017]: 'TOR2 Relay STOP' Turning OFF.
[07:34:55][D][switch:056]: 'TOR2 Relay STOP': Sending state OFF
I have written a small code to force the relays only 500ms, so the relay switches off by itself.
Any ideas? Opinions?
Thanks
Gin