Closed tefracky closed 2 months ago
Thanks, it's one line to change and we'll use total_increasing
so its consistent if that's ok. If you can't wait for the new build you can use MQTTExplorer and just update the topic name manually.
https://github.com/emsesp/EMS-ESP32/blob/c8300a7a1284a721a3cfe7b7f2e165e5e91fee3f/src/mqtt.cpp#L1179
Hi, thanks for the quick answer!
I think it should be total
, since the values might also be decreasing.
PROBLEM DESCRIPTION
In HomAssistant (currently 2024.6.2) the following error occurs:
Entity sensor.heizung_eltern_solar_energylasthour (<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_increasing', 'total'; 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
REQUESTED INFORMATION
TO REPRODUCE
I have a Buderus GB192i with a RC310 and a solar pump (not sure which one). The Energy Last Hour (which is exported via MQTT to HomeAssistant) has the state_class 'measurement', which is incompatible with the device_class 'energy'.
EXPECTED BEHAVIOUR
The state_class should be 'total'.
SCREENSHOTS
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)