[SOLVED] GPIO port don't work on Raspberry

Hi, I have a Raspberry B with Hassio 0.58.1 and this is my configuration:

switch:
  - platform: rpi_gpio
    ports:
      4: Relay
    invert_logic: false

I try to turn off and on the switch but in GPIO4 pin’s there aren’t change of level.
I use the GPIO4 that correspont to the pin 7 of the phisically connector.

I understand the problem. I try to change the state of the switch from the “States” page of the Home Assistant. This is wrong. The correct test is to call service switch/turn_on with the entityId in the json payload.