Closed stomko11 closed 2 years ago
That's quite confusing! Can you test with https://github.com/hertzg/rtl_433_docker using the hertzg/rtl_433:21.12
tag and hertzg/rtl_433:master
?
I'm pretty sure error 5 means "not authorized" in MQTT. You could also try adding output kv
to log to the console too.
Can you advise how to try it? I am using HA addon, not docker.
OK I did try the same using my Raspberry Pi. First I followed apt-get
install method and tried using rtl_433
without any further configuration, and it worked just fine using default frequency 433.92 MHz.
pi@raspberrypi:~ $ sudo rtl_433
rtl_433 version unknown inputs file rtl_tcp RTL-SDR SoapySDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 145 out of 175 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 23:26:47 brand : OS
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.50 C Humidity : 35 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 23:26:47 brand : OS
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.50 C Humidity : 35 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 23:26:48
model : AmbientWeather-TX8300 id : 40
channel : 1 Battery : 2 Temperature: -2.3 C Humidity : 52 % MIC : CHECKSUM
Then I also tried the docker using first master branch:
pi@raspberrypi:~ $ sudo docker run --device /dev/bus/usb/001/006 hertzg/rtl_433:master
rtl_433 version 21.12 (2021-12-14) inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 182 out of 213 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 177-197 199 201-213 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:54:44
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.70 C Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:54:44
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.70 C Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:56:03
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.80 C Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:57:20
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.80 C Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:57:20
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.80 C Humidity : 38 %
And then also debian-21.12
branch:
pi@raspberrypi:~ $ sudo docker run --device /dev/bus/usb/001/006 hertzg/rtl_433:debian-21.12
Unable to find image 'hertzg/rtl_433:debian-21.12' locally
debian-21.12: Pulling from hertzg/rtl_433
046501ac4c58: Pull complete
035cce8225bb: Pull complete
36d04fbfb12d: Pull complete
Digest: sha256:830fbfd0f8e4dc70ecd79bfdbfba38fe5619a7f8cfe1663006dbcd89db829b4e
Status: Downloaded newer image for hertzg/rtl_433:debian-21.12
rtl_433 version 21.12 (2021-12-14) inputs file rtl_tcp RTL-SDR SoapySDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 176 out of 207 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 177-197 199 201-207 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:53:26
model : Oregon-THGR122N House Code: 29
Channel : 1 Battery : 0 Temperature: -0.70 C Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:53:26
model : Oregon-THGR122N
House Code: 29
Channel : 1
Battery : 0
Temperature: -0.70 C
Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:54:05
model : Oregon-THGR122N
House Code: 29
Channel : 1
Battery : 0
Temperature: -0.70 C
Humidity : 38 %
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2022-02-27 22:54:05
model : Oregon-THGR122N
House Code: 29
Channel : 1
Battery : 0
Temperature: -0.70 C
Humidity : 38 %
Note that I don't own the sensor yet, so I did not always wait for actual sensor data, just whether it starts correctly or not.
For now, I am running rtl_433 in standalone docker outside of HA. I have downloaded and installed addon just now, but it still uses (I assume) old image, as there are already new protocol definitions available in rtl_433, but addon itself contains only 212. How do I make sure addon downloads the latest image available?
Thanks for all of the testing above. To test on your actual Home Assistant install, you can follow these steps to enable SSH into the OS host (if you don't have a keyboard and monitor), and when you're logged in you can run all of the usual docker commands like you've already done: https://developers.home-assistant.io/docs/operating-system/debugging/
When you mentioned "raspberry pi" - is that the same hardware your Home Assistant install is on? If not, I suppose it's possible there's some kind of USB hardware issue.
The image is only built when we create a new release here. The most recent addon version is 0.2.1
, which currently builds from this commit on master (current as of early February): https://github.com/pbkhrv/rtl_433-hass-addons/blob/main/rtl_433/Dockerfile#L16
What I'd like to do eventually is compile both the latest tag and current master release in, and add an option to switch between them: https://github.com/pbkhrv/rtl_433-hass-addons/issues/49
I have ssh enabled on my HA instance (i run VM), but it does not seem like I can run 'docker run' commands or 'rtl_433 ....`. When I was testing on rpi, this was completely different Raspberry pi, just to prove that my tuner is OK, and running it with docker image actually works. For now, I use rtl_433 as a standalone docker as I 1) can't get it to run in HA 2) protocols added lately are not included in the plugin
If you're in a VM, you can also just connect to the VM console too.
Are you using the terminal and SSH addon? If so, that doesn't have access to docker itself and would explain things. You have to use the above instructions, and connect on port 22222
.
Please reopen if you're able to confirm this is an issue with the latest release. Thanks!
I am having weird issues with my config. To eliminate other issues, I keep my config minimal for now, with only one line:
However when I start the addon, I get the following:
This goes on forever. My password or username don't contain any special characters.
when I stop the addon and specify frequency in addition:
It does not start at all and hangs at:
As soon as I change that frequency to 868M, it works immediately, without any MQTT issues:
If I restart HA (core), keep the config file empty, and start the addon, it again hangs at:
Basically I am unable to get 433,92MHz to work. Either by some miracle, I am able to start it, but get MQTT related errors, or I don't at all. If I change frequency to 868MHz, without any HA/Core restarts, everything works well.
Any ideas?