SpangleLabs / history-explorer-card

A card for Home Assistant Lovelace for exploring the history of your entities interactively and in real time.
MIT License
116 stars 2 forks source link

[FR] Possibility to show entity's attribute on the chart #23

Open gryzli133 opened 4 months ago

gryzli133 commented 4 months ago

Is it possible to track an attribute with this card?

For example I use light (dimmer) component to control a pump with variable speed. I would like to see the speed of the pump on the trend also. The same in my HVAC I use some valves/flaps to control the air flow. These are Covers in HA (time based position calculation in %).

Similar functionality is already implemented in ApexCharts, but these are not to flexible like history explorer card is. This is the last feature why I still use Apex parallel to History explorer card.

An example from apex:

This one will show the brightness instead of the ON/OFF state.

gyver commented 2 months ago

Another similar feature that could be supported at the same time (and might influence the implementation of this one) is plotting climate entities.

plotly-graph-card uses this syntax for them :

See https://github.com/dbuezas/lovelace-plotly-graph-card/discussions/13

KingTeppic commented 2 months ago

In both cases you can probably achieve this by creating a template sensor which has the value you wanted to plot, then adding the template sensor to the chart?

I resorted to doing this a few times before realising some limited manipulation of the state value is possible in the card settings using 'process' rows.

gryzli133 commented 1 week ago

I resorted to doing this a few times before realising some limited manipulation of the state value is possible in the card settings using 'process' rows.

Could you show us an example how to show attribute on the trend using process rows? Thank you in advance! Once we find a easy way to do it, we can add it to the readme of the project ;-)