-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BRESSER-6IN1 constant errors with home assistant (connected by mqtt) - Error parsing value: 'dict object' has no attribute 'battery_ok' #2145
Comments
Doesn't the Bresser 6in1 send two different MQTT messages, one with temperature, humidity etc. which also includes the battery_ok value, but also a second kind of message with your above posted wind and rain properties. So while both sets should be discovered, which I hope they are for you, it looks as if Home Assistant gets confused with any station sending such alternating MQTT messages?!? Apart from the errors in the log, is any functionality also breaking or working fine? I have experiences something similar with my Mi Band, but also only in very recent updates of Home Assiatnt, but things are working fine, but the Mi band also produces varying MQTT messages. |
I have the same issue. Also, the value for rain changes between a 2-digit and a 5-digit number. This comes with a change in the field 'flags' toggling between 0 and 1. |
Well, from seeing and reading some threads I know that some stations do send separate messages if and when they have very many properties, which would fit into on single message, and for this particular Bresser 6in1 this also seems to be stated in the actual rtl_433 decoder itself ;) https://github.com/NorthernMan54/rtl_433_ESP/blob/main/src/rtl_433/devices/bresser_6in1.c#L30-L32 But anyone who actually has this station can easily check the individual MQTT messages history with MQTT Explorer or any other MQTT monitoring app to see which kind of messages are being published, and if there are variations in the messages or not. @DeckardCain2014 Maybe you could post some samples of the different messages. If and why HA might have changed this to produce error messages if and when some key might be missing I do not know, also not if this is supposed to be a feature with the ability to disable it somewhere, or if it might be a bug in current releases. |
|
Might there even be a 3rd message type, as neither of these two has any Other than that I wouldn't know why the battery_ok property is not included any longer, and someone more knowledgeable with the rtl_433 decoders might need to have a look at this. |
no only these two :D |
So it seems that the If this is an upstream issue with rtl_433 or something else I could not say, and someone more savvy with the rtl_433 decoders will need to look into this. In the meantime it might be good if one of you could verify this with rtl_433 and an RTL-SDR stick, to see if the received.decoded and published messages are the same as with rtl_433_ESP and OpenMQTTGateway. To not receive any more error messages you could always delete homeassistant > binary_sensor > battery_ok discovery entry for this station with MQTT Explorer. |
Describe the bug
I use a Bresser 6-in1 weather station. I use a lilygo (433 mqtt esp device) in order to trasmit the values to home assistant. I am constantly getting these errors, as it seems, the value is not expected
`Logger: homeassistant.helpers.template
Quelle: helpers/template.py:809
Erstmals aufgetreten: 16:37:29 (95 Vorkommnisse)
Zuletzt protokolliert: 17:23:29
Error parsing value: 'dict object' has no attribute 'battery_ok' (value: {"model":"Bresser-6in1","id":810889475,"channel":0,"sensor_type":1,"wind_max_m_s":0,"wind_avg_m_s":0,"wind_dir_deg":202,"rain_mm":2,"startup":1,"flags":1,"mic":"CRC","protocol":"Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A","rssi":-63,"duration":33000}, template: {{ value_json.battery_ok | is_defined }})
Error parsing value: 'dict object' has no attribute 'battery_ok' (value: {"model":"Bresser-6in1","id":810889475,"channel":0,"sensor_type":1,"wind_max_m_s":0,"wind_avg_m_s":0,"wind_dir_deg":202,"rain_mm":2,"startup":1,"flags":1,"mic":"CRC","protocol":"Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A","rssi":-78,"duration":34001}, template: {{ value_json.battery_ok | is_defined }})
Error parsing value: 'dict object' has no attribute 'battery_ok' (value: {"model":"Bresser-6in1","id":810889475,"channel":0,"sensor_type":1,"wind_max_m_s":0,"wind_avg_m_s":0,"wind_dir_deg":202,"rain_mm":2,"startup":1,"flags":1,"mic":"CRC","protocol":"Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A","rssi":-62,"duration":33000}, template: {{ value_json.battery_ok | is_defined }})
Error parsing value: 'dict object' has no attribute 'battery_ok' (value: {"model":"Bresser-6in1","id":810889475,"channel":0,"sensor_type":1,"wind_max_m_s":0,"wind_avg_m_s":0,"wind_dir_deg":202,"rain_mm":2,"startup":1,"flags":1,"mic":"CRC","protocol":"Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A","rssi":-63,"duration":32996}, template: {{ value_json.battery_ok | is_defined }})
Error parsing value: 'dict object' has no attribute 'battery_ok' (value: {"model":"Bresser-6in1","id":810889475,"channel":0,"sensor_type":1,"wind_max_m_s":0,"wind_avg_m_s":0,"wind_dir_deg":202,"rain_mm":2,"startup":1,"flags":1,"mic":"CRC","protocol":"Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A","rssi":-79,"duration":32996}, template: {{ value_json.battery_ok | is_defined }})`
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: