GPIO on raspberry

HI,

I have a problem with a relay module connected to raspberry GPIO.
When I start Hass service the relay stay switched, I try to change invert logic true/false but it’s always on.
here’s my code:

switch:
  - platform: rpi_gpio
    ports:
      17: rel3
      18: rel4
    invert_logic: true

can anybody help?
thanks.

I have the same problem and the same configuration, have you found a solution? Thank you!!!

Use the 3.3V output on the raspberry instead of 5V.

1 Like

Thank you so much, it works, it was so easy :slight_smile: