-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
MQTT Exception raised while updating state of sensor BatteryStateAttribute/level' with payload: b'88' #118629
Comments
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) mqtt documentation |
Is seems an issue with decoding the incoming payload. But also the error handling with it. To solve this as incident, the config for the sensor should be checked. Possible the |
@jbouwh I would provide the MQTT explorer details but I'm currently aboard.. and I can't collect it right now. Sorry for that. |
The linked PR will fix the error stack is dumped, but a warning will logged instead. It seems the |
Thanks a lot @jbouwh for taking care about this on a Sunday, really appreciated. Thanks also at the complete team :) amazing work guys. At the end of next week I will be back home and do some more test, also collect the MQTT payload from MQTT Explorer and will pass the logs of the vacuum to the authors of the vacuum firmware (that by the way is a Valetudo) |
Feel free to share the configs later. The issue was closed automatically as a fix was merged. But note that this will not solve your issue unless the configuration for your entity is fixed. |
Will do as soon I'm back home, thanks again. |
Is there a workaround to get around the problem before it is fixed in Valetudo (if I have understood it correctly)? |
@jbouwh sorry for so long let you waiting, as requested, from MQTT explorer: in the config of the sensor:
The value of the sensor (is an Integer) according to MQTT explorer is an int but there is no Null recoded in Hope this can help, please let me know if anything else is needed. |
I have recently updated to Home Assistant home assistant log:
mqtt sub {
"state_topic": "staubsauger/robo/BatteryStateAttribute/level",
"icon": "mdi:battery",
"entity_category": "diagnostic",
"unit_of_measurement": "%",
"device_class": "battery",
"name": "Battery level",
"object_id": "valetudo_robo_battery level",
"unique_id": "robo_sensor_battery_level",
"availability_topic": "staubsauger/robo/$state",
"payload_available": "ready",
"payload_not_available": "lost",
"device": {
"manufacturer": "Roborock",
"model": "V1",
"name": "Valetudo V1 SharpAdoredCobra",
"identifiers": [
"robo"
],
"sw_version": "Valetudo 2024.06.2",
"configuration_url": "http://valetudo-sharpadoredcobra.local"
}
} mqtt sub
|
I think we need to open an issue to Valetudo as per the configuration of the vacuums needs to be updated. ''' The |
@marvinwankersteen please see issue on MQTT Vacuum Camera 216, I just discovered that the problem was generated from the Camera in the end. |
@jbouwh |
The encoding was explicitly set to ``. If the encoding option is left a way it will be |
The problem
Since beta 4 of 2024.6.0 this error is raising up randomly. It is understood that MQTT is trying to convert the payload data and as well want to return it as string or float, None (probably device wise network issue) was received probably raising this exception.
What version of Home Assistant Core has the issue?
2024.6.b04
What was the last working version of Home Assistant Core?
2024.5.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
MQTT
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt/
Diagnostics information
config_entry-mqtt-340dc203ad299d5bc055fdb889a578c5.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The text was updated successfully, but these errors were encountered: