-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintain fixed today's min-max bars during the day #410
Comments
hi @Chaoscontrol, First of all sorry for the late response. i have been pretty busy with other projects lately. however, i appreciate you taking time to create this feature request and describing the idea behind it. i was thinking about a feature like the one you described as well, but there are some drawbacks to this approach that made me - so far - not implement this feature: the javascript code of the card is only loaded when the dashboard is displayed, so there is no way to guarantee that the min/max temperature is properly captured and recorded throughout a day. for some people, who open the dashboard multiple times a day, this might work - for other's it wont. due to the issues i described above and the half-baked nature of the approach i foresee already a significant amount of bug ticket, which would (for me) even crate more downstream work (maintaining tickets, responding to bugs, admitting that the feature does not work reliable etc). the only option i see to make sure that we properly capture min/max temp of a given day would be by creating a proxy weather service in HA, which polls and stores the min/max temperature in a periodic fashion and makes it avaialble through the entire HA instance. what do you think? Best, |
Hi @pkissling , I checked and it's true the I was now wondering if it wouldn't be possible to access the history of the sensor value though, given that its history does have the stored values from the day. You wouldn't need to store it elsewhere, just call it. No clue if what I'm saying it's possible though. All I was thinking is that the values are actually stored somewhere in the db. Be it accessible via the sensor, or some kind of history call, I don't know. If that's not doable, the only other choice would be if there's some weather sensor provider where the sensor actually shows the full day inside its value for the entirety of the day. No clue if this is a provider's decision, or something by design in HA. Any idea about these 2 potential ways? Thanks for getting back and give a detailed response. |
Thanks for an amazing card and thanks also for your detailed answer. I understand the card doesn't store the high and lows of the day and that it is probably a limitation of the weather.* integration. I have thought of three possible workarounds that might work, listed in terms of simplicity in my mind:
Does my line of thinking make sense? |
Is your feature request related to a problem? Please describe.
I'm displaying this card on a small display under my TV, and most of the time we look at it in the evening. At that time, the temperature extremes have already been reduced a lot over the day, and especially max temperatures have mostly disappeared. This makes comparing current day with next days hard or complex, as you cannot see what the day actually was (you're seeing the remaining day hours, and comparing them with full days forecast).
Describe the solution you'd like
I appreciate not everyone might want this. So an option in the card to retain min and max values of the current day until the end of the day, instead of updating them as time passes.
The text was updated successfully, but these errors were encountered: