#Recommendations for 'measurement' which is impossible considering device class ('energy') ?

1 messages · Page 1 of 1 (latest)

mild kernel
#

Hi, in my log I see the following warning which indicates incorrect sensor configuration. I know the sensor configuration come from the addon "HoyMiles Solar Gateway stable Addon" - a Hoymiles cloud to MQTT transformer. So I opened a ticket in the addon repo instead of open a core issue. But now the maintainer asked how to fix. Does anybody know about details / recommendations how to fix?

Warning in Log:
WARNING (MainThread) [homeassistant.components.sensor]
Entity sensor.hoymiles_gatewaysolarh<removed>_real_power_measurement (<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"integration%3A+mqtt"

Git issue: https://github.com/dmslabsbr/hoymiles/issues/184

GitHub

HoyMiles Solar Gateway stable Addon Current version: 1.4.1 HMS-800W-2T Open a ticket because warning following warning in log: 2024-10-19 01:16:48.344 WARNING (MainThread) [homeassistant.components...

bitter citrus
#

as it is energy sensor, it should be 'total' or 'total_increasing' preferably, afaik.