Seite 1 von 1

UTF8 error connecting MQTT to Home Assistant

Verfasst: Di 15. Mai 2018, 12:28
von magnushq
When adding MQTT to Home Assistant, the following message appears when Home Assistant is trying to autoconfigure:

Tue May 15 2018 12:17:05 GMT+0200 (CEST)
Can't decode payload b'33 \xb0C' on homeassistant/health/climate/temperature with encoding utf-8

Is this an error in Robonect FW or in Home Assistant?

Re: UTF8 error connecting MQTT to Home Assistant

Verfasst: Mi 16. Mai 2018, 00:04
von Andreas
Just a guess, but consider to deactivate the units and only send raw numbers, it looks like there is the "°C" information added right beyond the value, you are interested in.

Re: UTF8 error connecting MQTT to Home Assistant

Verfasst: Mi 16. Mai 2018, 15:43
von Admin
I think Andreas is right.
@Andreas: Should i remove the "°" or should I encode it UTF8?

Re: UTF8 error connecting MQTT to Home Assistant

Verfasst: Mi 16. Mai 2018, 16:22
von Andreas
Admin hat geschrieben:
Mi 16. Mai 2018, 15:43
@Andreas: Should i remove the "°" or should I encode it UTF8?
I think a conversation to UTF8 is in general a good idea for data transported via MQTT, but regarding the initial problem of @magnushq it should be sufficient so simply deactivate the hook as marked in the following picture (sorry I cannot decrease the presented size):
MQTT unit deactivation
MQTT unit deactivation
2018-05-16_Robonect_MQTT-Setup_Web-AndreasLink.de.png (144.8 KiB) 2727 mal betrachtet
This will - as a result - only send the plain numbers to the MQTT broker aka Home Assistant and I assume, then it will be happy. --> @magnushq to verify