09-14-2022, 05:22 AM
if you use home assistant, i think you are using ESPHome. just add "inverted: true" in your pins.
# Example configuration entry
switch:
- platform: gpio
pin:
number: 25
inverted: true
# Example configuration entry
switch:
- platform: gpio
pin:
number: 25
inverted: true