Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 13 forks source link

Get state_class working for sensors #41

Closed feibeck closed 2 years ago

feibeck commented 2 years ago

In order to get the state_class attribute working. Seems like this needs a SensorEntity instead of an Entity.

Bouni commented 2 years ago

It seems that your PR at least brought the state_class attribute to show up in the Developer tools:

image

Now we need to figure out what wee need to do in order to get the sensor in the long term statictics ...

feibeck commented 2 years ago

I did not have time to look at this yet. Maybe I'll invest some time over the weekend…

Bouni commented 2 years ago

I did not have time to look at this yet. Maybe I'll invest some time over the weekend…

No need to hurry, I don't have much time either, just to many side projects :nerd_face:

feibeck commented 2 years ago

Yeah, but now that I have the integration running I want to have some of the data available with statistics :-D

Bouni commented 2 years ago

I've merged this as it dows not do any harm.

feibeck commented 2 years ago

👍

Dididam commented 1 year ago

Hi could you give an update if the statistics is working now? I tried with 01.30 and added the state_class to my config but it's not available on the statistics card.