Pretty simple.
Trying to use two push buttons on a NodeMCU v3 (no resistance), three relays to move a cover… any way D4 working great but D3 (or any other) is not!
captive_portal:
switch:
# Relay que energiza el transformador de 24 V.
- platform: gpio
pin: D1
id: relay_1
# If ESP reboots, do not attempt to restore switch state
restore_mode: always off
# On Sube Off Baja
- platform: gpio
pin: D2
id: relay_2
# Use interlocking to keep at most one of the two directions on
interlock: &interlock_group [relay_2, relay_3]
restore_mode: always off
# On Baja Off Sube
- platform: gpio
pin: D5
id: relay_3
interlock: *interlock_group
# If ESP reboots, do not attempt to restore switch state
restore_mode: always off
binary_sensor:
- platform: gpio
id: cerrar
pin:
number: D3
inverted: true
on_press:
- cover.close: my_cover
on_release:
- cover.stop: my_cover
- platform: gpio
id: abrir
pin:
number: D4
inverted: true
on_press:
- cover.open: my_cover
on_release:
- cover.stop: my_cover
what I’m doing wrong??