MickMake / GoSungrow

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

multiple errors in HA logs #73

Open Solarbytes opened 10 months ago

Solarbytes commented 10 months ago

I finally got GoSungrow up and running, so I am poking around to understand if I can use this tool to replace Solar Analytics. As I noticed that many sensors have zero values or display default values such as "3" for the fault status or "0.049" for curr_power after sunset, I had a look at the HA logs and found many error messages similar to the following examples and I am wondering whether that could explain the zero values:

2023-08-22 06:23:38.166 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.gosungrow_getpsdetail_1227062_plan_energy_0 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; 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

2023-08-22 06:23:38.469 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.gosungrow_getpsdetail_1227062_co2_reduce_total (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'total' which is impossible considering device class ('weight') it is using; expected None or one of 'measurement'; 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

Should I post them all here? Should I just update them myself (as I am new to HA, I don't know whether I can actually do that.

Thanks, Gaetano.