Skip to content
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

history-graph plots wrong info #2061

Closed
ghost opened this issue Nov 16, 2018 · 12 comments · Fixed by #7072
Closed

history-graph plots wrong info #2061

ghost opened this issue Nov 16, 2018 · 12 comments · Fixed by #7072

Comments

@ghost
Copy link

ghost commented Nov 16, 2018

@steve28 commented on Nov 16, 2018, 8:59 PM UTC:

Seems related to: #149 - but it's still not working correctly as of 0.82.1

I made a vertical-stack showing two history-graphs of the same sensor. One to show the default "past 24 hours" and one to show only the last hour. Like so:

      - type: vertical-stack
        cards:
        - type: history-graph
          title: House Power - 24 Hours
          entities:
            - sensor.house_power
        - type: history-graph
          title: House Power - 1 Hour
          hours_to_show: 1
          entities:
            - sensor.house_power

When I do this, I get the exact same graph twice:
screen shot 2018-11-16 at 12 35 55 pm
Some more info:

  • If I refresh the page a bunch of times, it will occasionally load correctly.
  • If I add a refresh_interval: to the 1-hour graph, it will oscillate back and forth between the correct plot and the incorrect plot. Specifically, the correct one will load and few seconds later, it will flip back to the incorrect one, this seems to repeat every refresh_interval.
  • If I switch the order (i.e., put the 1-hour graph first), it seems to work correctly

This issue was moved by iantrich from home-assistant/ui-schema#193.

@ghost
Copy link
Author

ghost commented Nov 16, 2018

@steve28 commented on Nov 16, 2018, 9:04 PM UTC:

I should add that I see this in both Chrome and Safari on my Mac running OSX 10.14.1

@deggle
Copy link

deggle commented Jan 20, 2019

I'm having a similar issue. I have a page with the same sensors charted with a number of time-frames (each explicit set) and it randomly flicks around between them. The first chart of the sensor seems to always be correct (and another on the page for another sensor is fine) but the subsequent charts go crazy. After a while the browser window seems to freeze too. I've commented here as it sounds like the same issue (or at least likely the same fix).

@balloob
Copy link
Member

balloob commented Jan 22, 2019

Similar can be seen at https://demo.home-assistant.io/#/lovelace/home_info . Click a couple of times on "S's Room" and the graph will draw over itself.

@stale
Copy link

stale bot commented Jan 22, 2020

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 22, 2020
@stale stale bot closed this as completed Jan 30, 2020
@goldfoxo
Copy link

goldfoxo commented Mar 4, 2020

This is still occurring to me, as of 0.106.4. Exact same conditions. Multiple browsers, Win10. I can log a new issue if needed.

@stale
Copy link

stale bot commented Jun 2, 2020

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 2, 2020
@tomlut
Copy link

tomlut commented Jun 8, 2020

This is still an issue in 0.110.5.

@stale stale bot removed the stale label Jun 8, 2020
@WarmChocolateCake
Copy link

Just to add that this is discussed with more screenshots on the forum here:
https://community.home-assistant.io/t/history-graph-hours-to-show-only-working-in-preview/203033

@mat1990dj
Copy link

+1, having the same issue
in config mode the 24h is shown correctly:
image
But not in view mode:
image

@WarmChocolateCake
Copy link

@mat1990dj - open the Lovelace Raw Configuration Editor and find those history-graphs...

Do you have an extra "hours_to_show: 24" in there? I was manually editing mine recently and I think I saw an extra line (but forgot to update this).

@ptr727
Copy link

ptr727 commented Sep 10, 2020

I just noticed this problem with 0.115.0b4, editing using GUI. Any time more than one graph uses a different timespan the shortest time is used.

@lakee911
Copy link

lakee911 commented Jan 9, 2022

I'm having this trouble. Wasn't an issue until I deleted my database (huge size, funny issues elsewhere). Then, these multiple time periods stopped working.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants