dalinicus / homeassistant-acinfinity

AC Infinity integration for Home Assistant for UIS based controllers
MIT License
75 stars 4 forks source link

Values to store as statistics #46

Closed akballow closed 4 months ago

akballow commented 7 months ago

All the values like temperature, humidity, and VPD do not store as statistics so I cannot see the values in default statistics graph.

Am I doing something wrong? Or is this something that has not been done yet?

Thank you and sorry if this was user error.

dalinicus commented 7 months ago

Are you referring to the history graph on the sensor?

image

This is part of home assistant core functionality for sensor entities, and not something that needs to be setup explicitly by this integration. It also appears to be functioning as expected for me.

If this is not what you're referring to, could you please elaborate further on what graphs you are referring to.

akballow commented 7 months ago

Are you referring to the history graph on the sensor?

image

This is part of home assistant core functionality for sensor entities, and not something that needs to be setup explicitly by this integration. It also appears to be functioning as expected for me.

If this is not what you're referring to, could you please elaborate further on what graphs you are referring to.

Hi thanks for the reply. No the history graph is fine but home assistant has a statistics graph which the same entities will not work for because the values are not written to a statistics value. This allows for averages, min, and max which is much more informative than the history graph.

dalinicus commented 6 months ago

Sorry, I spaced on getting more information on this.

https://www.home-assistant.io/integrations/statistics/

Is this what you're referring to? It looks like it just keeps track of an existing sensor or binary sensor (number, select, switch, and time do not appear to be supported) and doesn't appear to require anything special from the sensor itself other than it reporting its normal values.

Could you send one or more of the following items?

Icevarta commented 5 months ago

Hi, i think akballow is talking about the Long-term Statistics. They are needed for the Statistics graph card. At the Moment the entities of this component do not show up in the Entity select field.

Bildschirmfoto 2024-04-08 um 16 58 10

The handy "Why is my entity not listed?" link leads to this page: Long-term Statistics Seems like the sensors need the state_class property set to measurement.

dalinicus commented 4 months ago

Perfect. Thanks for the clarification. I'll take a look.

dalinicus commented 4 months ago

This is available in version 1.4.3. Thanks all :)