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: contains entities which were NOT selected for the card #73155
Comments
I may explain why I find this bug important. |
Can you open the network tab, watch the websocket, and paste the data you get back the from the history query? |
Click the arrows to the right of sources |
I found some Network view but it does not look like yours (see the post above) |
You need to shift+reload to get it to appear |
While trying to find that Network page I probably made a mistake - I rebooted HA. If we can trace something now - please tell me what to do. |
If it happens again please get a copy of the websocket response to the history api call |
You'll see an When you find one that isn't working correctly find the request and then find the response by id |
Thank you very much for helping! |
Can you post the YAML source to the panel you have displayed here #73155 I'm going to try to create similar entities to see if I can make it happen |
The view is
To create dummy sensors, use this code generator (insert it into a "template" HA page, it will generate a code - copy/paste it into some yaml file):
NO custom cards are needed. |
Do you have a minimal replication case that doesn't require custom cards? I can't be sure I'm looking at the right issue unless we can reduce it down to the most minimal reproducible case. |
Yes, I changed a code. The code generator is edited too since there is no need in |
|
Its working as expected on all 4 DBMs, but I'll leave it turn in a tab in case something goes wrong and I can catch it |
It's also possible I may have fixed this in one of the PRs that hasn't made it into a public release yet |
Thank you for testing! As I said before, the glitch once appeared, then it was occurring stable, then it disappeared after HA restart (w/o HA updates). More facts:
|
This might be caused by home-assistant/frontend#12878 so let's wait to see if it happens again after that one gets released |
Isn't it related to #72991 ? One of the "failure modes" when history graph receives wrong data from the database? After restart bug disappears? |
This sure looks like it has the same root cause as #72991 |
recorder documentation |
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( |
Yes, I have not observed it so far. |
Checklist
Describe the issue you are experiencing
Create a history-graph with TWO entities:
Let's create a sensor w/o a History:
The card:
The output:
The card contains TWO same another entities - which were not selected.
Describe the behavior you expected
If some selected entity does not have a history - then it is NOT displayed on the graph.
No any other entities are displayed, except selected entities with a history.
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
HA 2022.6.1
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome 102.0.5005.63
Which operating system are you using to run this browser?
Win10x64
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: