Raspberry pi gpipo how to?

did a completer install now i can i add it, but with

switch:

  • platform: rpi_gpio
    ports:
    7: Fan Office

and i messure pin 7 , its 3.3v on both on and off

I’m not sure, but maybe the number defined in ports is the GPIO number, so the pin on your raspberry should be the 26th. I’m not sure though, it’s just a guess

in my config, I have a PIR sensor defined as port : pin 4. On the RP3, it is connected to pin 7