rtl_433¶
rtl_433 is a generic data receiver, mainly for the 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands and is used to read devices.
I use this with Eclipse Mosquitto to connect 433 devices to Home Assistant.
Hardware¶
Config¶
Find the USB device idVendor and idProduct
Blacklist Driver¶
The default Linux kernel driver dvb_usb_rtl28xxu must be prevented from grabbing the device.
Create blacklist file
Reboot the host for this to take effect.
Udev Rule¶
/etc/udev/rules.d/99-rtl433.rules
Add the symlink /dev/rtl433 to devices.
compose.yaml
rtl433:
image: hertzg/rtl_433:25.12
container_name: rtl433
devices:
- /dev/rtl433:/dev/bus/usb/001/001
command:
- "-Mtime:unix:usec:utc"
- "-Fmqtt://mosquitto:1883,retain=1,user=${RTL_USER},pass=${RTL_PASS},events=rtl_433[/model][/id]"
- "-Ccustomary"
- "-f915M"
- "-f433.9M"
restart: unless-stopped
networks:
- localnet
# network_mode: host
Troubleshooting¶
MQTT
Listen to a topic: rtl_433/#
| Start listening |