birdie1 / victron

Victron bluetooth and serial communication at a python script. With MQTT and HomeAssistant support.
GNU General Public License v3.0
125 stars 16 forks source link

Homeassistant is getting spammed with warnings #5

Closed niecore closed 2 years ago

niecore commented 2 years ago
2022-01-24 23:34:16 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:16 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: OFF
2022-01-24 23:34:16 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: 0: None
2022-01-24 23:34:16 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: SmartShunt 500A/50mV
2022-01-24 23:34:16 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] Erroneous JSON: 0xA389: SmartShunt 500A/50mV
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-01-24 23:34:17 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary

I dont know what else could help with debugging the issue.

birdie1 commented 2 years ago

Are you using the smart shunt via bluetooth-ble protocol?

birdie1 commented 2 years ago

Please try to use the new version which I pushed a few minutes ago f68cc97fe2c4198aa79b03f6fc58c05a26a111d5. I removed json_attributes_topic from hass autodiscovery. I think this created the warnings.