MQTT data gets corrupted sometimes in home assistant

This may help