lovelace-plotly-graph-card icon indicating copy to clipboard operation
lovelace-plotly-graph-card copied to clipboard

[Q] Update chart on value change?

Open PulsarFX opened this issue 2 years ago • 1 comments

I'd like to have the chart updated when the sensor value changes, like it is done with the history card. Is this possible?

If not: is it possible to have buttons to change the update interval, just like the range selector buttons?

PulsarFX avatar Aug 08 '22 23:08 PulsarFX

Yes, by using the websockets API. This will also allow the card to get the long term statistics data. I'll eventually get to it. In the meanwhile, you can change the update interval in yaml (see readme) or just move the plot a bit with the mouse to update

dbuezas avatar Aug 09 '22 05:08 dbuezas

Good news! :) Websockets weren't necessary, home assistant's frontend already exposes this to the card. If you want to test the work in progress, here's the PR: https://github.com/dbuezas/lovelace-plotly-graph-card/pull/114

dbuezas avatar Nov 05 '22 17:11 dbuezas

Feature available in v1.7.0 (see refresh_interval: auto)

dbuezas avatar Nov 07 '22 20:11 dbuezas