Replies: 1 comment 1 reply
-
@phipolis Did you ever find a workaround for this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Selecting multiple entities in the history view is a very useful tool for understanding interactions and testing automations. For clusters of entities I want to be able to check easily, I started adding entities card weblinks that jump directly to the history view.
For example, comparing inside and outside temperature with whether a door was opened:
This is much more convenient than clicking into the first entity's history and adding the others each time I want to see a particular comparison. The one thing you can't do is set a dynamic time window. If no date is provided, the view defaults to a small number of hours on the current day, which is usually too small. The "Show more" entity history links are generated with a
start_date
value corresponding to midnight UTC the day before, which gives a longer duration that is usually a more useful starting point.With that in mind:
/history
accepted Grafana-stylefrom=now-3d&to=now
relative dates.url
field supported templates, one could do/history?entity_id=&start_date={{(utcnow() - timedelta(days=3)).isoformat()}}
. That's clumsy, and the idea has been rejected in the past though. (Template support for weblink #4397)start_date
andend_date
aren't provided to be identical to the one used in "Show more" history links.Beta Was this translation helpful? Give feedback.
All reactions