Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106570

Creating a graph of time between "last changed" for an entity

$
0
0

I take daily medication and want to use a graph such (preferably Plotly, mini graph card, or something built into Home Assistant) to track this better. When I take the pills, I scan an NFC tag, which updates a datetime helper with the current time.

I want each change of this entity (meaning pills were taken) to add a new column/bar on the X axis, with the Y axis showing the hours elapsed since the last time the pills were taken. The goal being to consistently take the pills every 24 hours and keep each bar the same height.

Here is a mock chart with dummy data from Excel:

Any help with getting the right YAML together for this? I’ve been struggling with it all afternoon. :hugs:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106570

Trending Articles