Multiple radios in Home Assistant

1,133 views
Skip to first unread message

Bill Ostrander

unread,
Mar 28, 2022, 8:26:11 PM3/28/22
to rtl_433
Hello to all,

I am currently running RTL_433 as an add-on in Home Assistant (https://github.com/pbkhrv/rtl_433-hass-addons/tree/main/rtl_433) and have several SDRs connected to a single machine that I am trying to read traffic on different frequencies (319.508M & 916.8M) without having to hop frequencies.  I have been able to each of these devices to work on their own frequencies and publish into MQTT when used one at a time.  Below is system information as I often see people asking for that to better assist.

arch: amd64
channel: stable
docker: 20.10.9
machine: generic-x86-64
Home Assistant OS 7.5
supervisor-2022.03.5
core-2022.3.7

The system set up is an HP intel machine with i7-10700 CPU with 32GB ram, with HA running off a 500GB USB SSD (as boot system and not in VM).  The machine boots from this drive on startup while I wait to get an internal SSD so that I can keep the original Windows 10 drive and setup in case I want to revert that back.

I have two configuration files in rtl_433/
- rtl_433.conf.template
- rtl_433_2.conf.template

I have tried adding both of these in the config tab of the add-on but gives an error and defaults to add-on settings, separating the two files by a comma as well as by | , both of which give an error.
----------------------------------------------------------------------------
Log from RTL_433 add on from rtl_433.conf.template:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. 
[s6-init] ensuring user provided files have correct perms...exited 0. 
[fix-attrs.d] applying ownership & permissions fixes... 
[fix-attrs.d] done. 
[cont-init.d] executing container initialization scripts... 
[cont-init.d] done. [services.d] starting services [services.d] done. 
[19:34:31] WARNING: rtl_433 now supports automatic configuration and multiple radios. The rtl_433_conf_file option is deprecated. See the documentation for migration instructions. 
Starting rtl_433 -c /config/rtl_433/rtl_433.conf.template 
rtl_433 version 21.12-51-g2b49b81a branch at 202201311039 inputs file rtl_tcp RTL-SDR 
Use -h for usage help and see https://triq.org/ for documentation. 
newmodel option (-M) is deprecated. 
Publishing MQTT data to <IPADDRESS> port <PORT> 
Publishing device info to MQTT topic "rtl_433/74930c0d-rtl433/devices[/model][/subtype][/id]". 
Publishing events info to MQTT topic "rtl_433/74930c0d-rtl433/events[/id]". 
Publishing states info to MQTT topic "rtl_433/74930c0d-rtl433/states". 
Registered 1 out of 212 device decoding protocols 
Found 3 device(s) trying device 1: Realtek, RTL2838UHIDIR, SN: 00000001 
Found Rafael Micro R820T tuner 
Using device 1: Generic RTL2832U OEM 
Exact sample rate is: 250000.000414 Hz 
[R82XX] PLL not locked! 
Sample rate set to 250000 S/s. 
Bit detection level set to 0.0 (Auto). 
Tuner gain set to 28.000000 dB. 
Reading samples in async mode... 
Tuned to 319.508MHz. 
Allocating 15 zero-copy buffers 
MQTT Connected... 
MQTT Connection established. 

----------------------------------------------------------------------
Log using rtl_433_2.conf.template:

Starting rtl_433 -c /config/rtl_433/rtl_433_2.conf.template
 rtl_433 version 21.12-51-g2b49b81a branch at 202201311039 inputs file rtl_tcp RTL-SDR 
Use -h for usage help and see https://triq.org/ for documentation. 
New defaults active, use "-Y classic -s 250k" for the old defaults! 
newmodel option (-M) is deprecated. 
Publishing MQTT data to <IPADDRESS> port <PORT> 
Publishing device info to MQTT topic "rtl_433/74930c0d-rtl433/devices[/model][/subtype][/id]". 
Publishing events info to MQTT topic "rtl_433/74930c0d-rtl433/events[/id]". 
Publishing states info to MQTT topic "rtl_433/74930c0d-rtl433/states". 
Registered 1 out of 212 device decoding protocols Found 3 device(s) 
trying device 2: Realtek, RTL2838UHIDIR, SN: 00000001 
Found Rafael Micro R820T tuner 
Using device 2: Generic RTL2832U OEM 
Exact sample rate is: 1000000.026491 Hz 
[R82XX] PLL not locked! 
Sample rate set to 1000000 S/s. 
Bit detection level set to 0.0 (Auto). 
Tuner gain set to 28.000000 dB. 
Reading samples in async mode... 
Tuned to 916.800MHz. 
Allocating 15 zero-copy buffers 
MQTT Connected... 
MQTT Connection established.

Best regards,
Bill

Christian Z.

unread,
Mar 29, 2022, 3:33:37 AM3/29/22
to rtl_433
You'll likely need to ask at pbkhrv/rtl_433-hass-addons, if it's about that programs parameters.

David Powell

unread,
Mar 29, 2022, 4:58:19 AM3/29/22
to rtl_433
I've tried this before and was never able to get it to work.  I finally ended up putting each SDR radio on a separate Raspberry Pi. 

David

--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rtl_433/098dbed3-a72c-4a1f-a3c5-a4d66e3952f4n%40googlegroups.com.

Christian Z.

unread,
Mar 29, 2022, 5:28:35 AM3/29/22
to rtl_433

I've tried this before and was never able to get it to work.  I finally ended up putting each SDR radio on a separate Raspberry Pi. 

At least for rtl_433 it should "just work". With RTL-SDRs use rtl_eeprom to name the devices (e.g. "SDRAT868"). Then use those names in the respective configs (e.g. -d :SDRAT868).

Jason White

unread,
Oct 6, 2022, 6:20:28 PM10/6/22
to Christian Z., rtl_433
 I concur. I have three SDRs on the same Pi 4 and simply refer to them as device 0, 1, and 2 in my config file:

[...]
device 0
[...]

I don't recall exactly how I figured out which one was which other than some trial and error.

Regards,
-Jason

On Mar 29, 2022, at 4:28 AM, Christian Z. <chri...@zuckschwerdt.org> wrote:


I've tried this before and was never able to get it to work.  I finally ended up putting each SDR radio on a separate Raspberry Pi. 

At least for rtl_433 it should "just work". With RTL-SDRs use rtl_eeprom to name the devices (e.g. "SDRAT868"). Then use those names in the respective configs (e.g. -d :SDRAT868).


--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.

-- 
Jason White
jdw...@menelos.com
"The single biggest problem in communication is the illusion that it has taken place." - George Bernard Shaw



Reply all
Reply to author
Forward
0 new messages