esp8266-dsmr icon indicating copy to clipboard operation
esp8266-dsmr copied to clipboard

HomeAssistant 2022.2 compatibility

Open w3host opened this issue 3 years ago • 3 comments

Hi Bram2202,

Thanks for this project.

I have received some "last_reset" errors in HA 2022.2 and stopped working Energy usage graph : Entity sensor.esp_dsmr_dcf007_power_consumption (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) with state_class measurement has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported.

I have updated sensors and it is working again for me again: https://github.com/w3host/esp8266-dsmr/commit/6e8aa0fd25020e2803a108cc0b077d0935abb865

Regards,

Krisz

w3host avatar Feb 13 '22 18:02 w3host

Hey,

There ware some changes regarding the last_reset in HA the a few releases ago. Your changes look ok, can you create a PR for this?

bram2202 avatar Feb 14 '22 09:02 bram2202

Beware this is not based off the 13.3 update with the gas fix

Dutchone avatar May 05 '22 09:05 Dutchone

Hi, not an expert in git and in programming. I applied the above changes, reflashed esp8266 and no more MQTT error messages in HA 2022.7.7 Energy graph is working.

Zephael86 avatar Jul 31 '22 20:07 Zephael86