maxym
December 19, 2024, 1:13pm
22
You mean WTH for a picker or the picker implemented? IMO the current one is… deserves WTH. This is why I’m asking.
petro
(Petro)
December 19, 2024, 1:15pm
23
There’s a few WTHs about history in general. Some are for the picker, some are for the graphs. This one is specifically about crappy date ranges from what I can tell.
Attax
(Axel Hartmann)
December 23, 2024, 5:48pm
24
I find it very difficult after change of a month to get a meaningful view in a diagram. The date pickers are very fiddly and convoluted on many platforms.
There should be a choice with a floating 4-week time frame similar to the fixed this / last month settings.
maxym
December 25, 2024, 4:19pm
25
Speaking about grafana, what about user-defined ranges (stored on the server!) and some functions helping build own ranges (floating, dynamic, fixed whatever)
Sometimes I have impression that HA community (incl devs) is trying to re-invent a wheel.
Boern99
December 27, 2024, 12:33pm
26
Created a pull request for it, adding Last 24 hours, Last 30 days and Last 365 days:
home-assistant:dev
← boern99:add-timespans-to-Logbook-and-History
opened 02:41PM - 20 Dec 24 UTC
<!--
You are amazing! Thanks for contributing to our project!
Please, DO N… OT DELETE ANY TEXT from this template! (unless instructed).
-->
## Breaking change
<!--
If your PR contains a breaking change for existing users, it is important
to tell them what breaks, how to make it work again and why we did this.
This piece of text is published with the release notes, so it helps if you
write it towards our users, not us.
Note: Remove this section if this PR is NOT a breaking change.
-->
## Proposed change
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue or discussion
in the additional information section.
-->
## Type of change
<!--
What type of change does your PR introduce to the Home Assistant frontend?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
adds som additional Date-Selections: Last 24 hours, Last 30 days and Last 365 days to History, Logbook and Energy-Dashbaord
![image](https://github.com/user-attachments/assets/f8476065-b2de-4a44-806c-142fb284f3df)
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Example configuration
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR.
-->
```yaml
```
## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->
- This PR fixes or closes issue: fixes #
- This PR is related to issue or discussion:
- Link to documentation pull request:
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [ ] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
<!--
Thank you for contributing <3
-->
[docs-repository]: https://github.com/home-assistant/home-assistant.io
but you did not include ranges below 24h, which is my main gripe.
2 Likes