kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.08k stars 238 forks source link

Use attribute for x-axis? #646

Open Inrego opened 3 years ago

Inrego commented 3 years ago

Hi. I'm loving this card. However, I'm having a small issue with a few of my graphs. I get energy usage reading into a sensor, but the data is 2 days delayed. So my energy usage for sept. 5 will arrive in the sensor on sept 7. The sensor has an attribute metering_date for when the reading was done.

I would love to be able to use this attribute as my x-axis, because right now my graphs are showing wrong dates (skewed by 2 days).

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

ildar170975 commented 2 years ago

Could be a useful feature: use an attribute of a sensor as a time-scale.

stale[bot] commented 2 years ago

Still an active issue, got it! Removing stale label.

zanna-37 commented 2 years ago

The time-scale would be appreciated.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

Inrego commented 2 years ago

Still interested

stale[bot] commented 2 years ago

Still an active issue, got it! Removing stale label.

ncd7 commented 11 months ago

I have the exact same issue/request. FYI this is quite typical for utilities in the States. Their "realtime" meters are at best a few hours delayed but often 1-2 days delayed. Of course, if you can get your own data by installing a local sensor on the meter itself it can be solved (i,.e. you will get true realtime data) but in many apartment buildings it isn't allowed or is expensive. So many people rely on the data from utilities which are severely delayed.