Raspberry Pi 4, PIR sensor, rpi_gpio, can't trigger a relay

Tags: #<Tag:0x00007f3274bd1980>

I found this configuration sample here:

and tried this:

binary_sensor:

  • platform: rpi_gpio
    ports:
    4: PIR test

cover:

  • platform: rpi_gpio
    covers:
    • relay_pin: 18
      state_pin: 4

the sensor works (gpio 4 status led blinks when sensor is excited) but the gpio 18 status doesn’t change. what is missing from this picture?
Thanks…

[OT] I can guess what “cover” means here but…is it slang? couldn’t find any proper definition in the dictionary…not connected with “door” at least.