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

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.