Problem with docker and Rasp Pi RF

Hey community,

i have a problem with my Docker setup.

First of all, my configuration:
-Raspberry Pi 2B
-Raspian Image: 2021-01-11-raspios-buster-armhf-lite
-Installed docker
-Installed the HA docker image:
docker run -d \ --name homeassistant \ --privileged \ --restart=unless-stopped \ -e TZ=MY_TIME_ZONE \ -v /PATH_TO_YOUR_CONFIG:/config \ --network=host \ ghcr.io/home-assistant/raspberrypi2-homeassistant:stable

My problem:
i have connected my 433mhz sender, which is working fine with the HA image.
I take the same config:
`switch:

  • platform: rpi_rf
    gpio: 17
    switches:
    A:
    code_on: 1361
    code_off: 1364
    `
    But the sender doesnt work.

I found some threads, which are trying to modify the docker run command with --privileged or adding the gpio device.
So i combined it into following docker run command:

docker run -d \ --name homeassistant \ --privileged \ --cap-add SYS_RAWIO \ --device /dev/mem:/dev/mem \ --device /dev/gpiomem:/dev/gpiomem \ --device /sys/class/gpio:/sys/class/gpio \ --restart=unless-stopped \ -e TZ=Europe/Berlin \ -v /home/pi/homeassistant-config:/config \ --network=host \ ghcr.io/home-assistant/raspberrypi2-homeassistant:stable

But all that combination doesnt help.

Do you have any ideads?