JSON decode error in rtl_433_mqtt_hass.py #3224
Replies: 2 comments 3 replies
-
|
The hass mqtt world expects the payload to be a json dictionary with the entire output, not a single value. It seems like you are sending a single value. You didn't explain what version of software you are running and exactly how it is configured. HA addons are not part of rtl_433 and thus you may want to ask in an HA context. And, people tend to be running older code, and there have been bug fixes in the not too distant past, whose details escape me. |
Beta Was this translation helpful? Give feedback.
-
|
Broadly, within HA culture, there are two styles of using mqtt. One is to have a topic with a value, sort of foo/bar/outside_temperature_c = 10, and another to is to have foo/bar/weather with a dictionary that has a key outside_temperature_C with a value 10. I pretty strongly prefer the dictionary when It's a coherent set of observations. The important thing of source is to have speaker and interpreter agree. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to add my rtl_433 devices to get auto discovered but whenever I try to run the add on which runs this wrapper script: rtl_433_mqtt_hass.py
I get the following error:
ERROR:root:JSON decode error: 2025-03-13T17:42:02.309197-0700
I also get the following error:
Is it having trouble trying to decode the T in the UTC time?
Why am I getting argument of type 'int' is not iterable?
I appreciate any help in this matter. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions