MickMake / GoSungrow

GoLang implementation to access the iSolarCloud API updated by SunGrow inverters.
https://mickmake.com/
GNU General Public License v2.0
185 stars 48 forks source link

MQTT HA ValueErrors #96

Open lupus78 opened 1 year ago

lupus78 commented 1 year ago

I'm using the app to sync to MQTT and consume it with HA (I don't have a supervised install). Data is coming from, but the logs are full of these messages:

home-assistant   | ValueError: Sensor sensor.gosungrow_getpsdetail_5100229_timezone has device class 'None', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'GMT+1' (<class 'str'>)
home-assistant   | 2023-11-06 13:57:35.195 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.gosungrow_getpsdetail_5100229_p83013 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'Wh/㎡' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['W/m²', 'BTU/(h⋅ft²)']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
home-assistant   | 2023-11-06 13:57:35.205 ERROR (MainThread) [homeassistant.components.mqtt.models] Exception raised when updating state of sensor.gosungrow_getpsdetail_5100229_valid_flag, topic: 'homeassistant/sensor/GoSungrow/GoSungrow-getPsDetail-5100229-valid_flag/state' with payload: b'{"value":"true"}'

I tried to delete the Entries from HA but not allowed. What can I do to fix these issues?