tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
281 stars 47 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte #210

Open svenerbe opened 4 months ago

svenerbe commented 4 months ago

Hello,

I'm encountering numerous error messages within Home Assistant, particularly this one: ERROR (Thread-11 (_thread_main)) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 4.

To address this, I've resolved the issue in my installation by making a modification to ecoflow_mqtt.py as follows:

On line 252: Changed from: payload = message.payload.decode("utf-8") To: payload = message.payload.decode("utf-8", errors='ignore')

I'm curious if others have experienced this issue and if there's a potential solution by modifying the code.

My Ecoflow-Cloud Version is 0.13.1.