-
Notifications
You must be signed in to change notification settings - Fork 22
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
Power Wheels disappears randomly in 0.116.1 #64
Comments
I could reproduce this behavior for a minute when I switched to 0.116.2 myself. Maybe HA was using some cached frontend components, because after some time/refreshes it didn't happen again. Is it still happening for you? If so, what version of the frontend do you use? (See |
It is random. But if you refresh enough, it will return. But then go away later when opening up that tab again. I am using the latest front end: Frontend version: 20201001.2. I find the same result on 2 different PCs and 2 different Android phones. More an annoyance than anything, since I can eventually get it to populate on the screen. I have not yet noticed any other cards having this behavior. Here are my settings for the card:
I was trying to go into Developer Tools in Chrome to see what is happening, but when I do that, the card pops up again! Strange behavior. I can also reproduce in FireFox was well. And, as I mentioned, on my Android phone in the HA mobile app. |
I can reproduce it now. (In my first response I also said that I could reproduce, but I saw a partial rendered card there, and never saw that again.) I can get the same behavior, when I play with an extra parameter (
When I click 'Reload resources' and 'Refresh' in the UI and then refresh the browser, the issue occurs. The card doesn't show up. If I open the dev console, the card appears. |
Same here Hassio on PI. |
I'm trying to solve this issue, but it's hard (for me at least ;-) ). (First I thought it was caused by putting the power-wheel-card inside other cards and that I had to use https://github.com/thomasloven/lovelace-hui-element. But that didn't help.) Next I was triggered by this and maybe HA got improved in lazy loading cards and power-wheel-card is impacted by that. I tried the hint there to preload a card. But I can't tell if the situation did improve. Maybe now its 1 out of 10 instead of 3 out of 10? For sure I had to disable some testing for config errors in the card itself before the card even could be preloaded. Not sure where to look now. I will put a version on the dev branch (with the extra resource and the disabled config error testing). I had to put
Please note the 'v' parameter that I had to upgrade every time to make HA load the latest version and not an old cached version. Please add To help, could the three of you:
|
Interesting. I have not tried loading the dev version yet, but I did do a test by adding PowerWheel to another existing tab. Doing that, it appears to work fine and does not 'disappear' even after numerous refreshes. However, oddly, that causes the 3rd card in the Tab to randomly disappear!
|
Wait, did something change? For some reason, I cannot get the PowerWheel card to disappear anymore. I did not update any parts of HA that I know of, and did not update Chrome that I know of. But for now, the Power Wheel is rock solid. EDIT 1: EDIT 2: |
Thx for the extra info. Maybe, by placing another instance of the power-wheel-card in your setup, the order of loading cards changes and this solves the issue. Or maybe this does trigger the lazy loading of custom cards in a different way. I got the feeling that this isn't specifically an issue for the power-wheel-card but could be an issue for all (custom?) cards in HHOME ASSISTANT Maybe the complexity/size/performance of power-wheel-card makes it more vulnerable, I don't know yet. |
@gurbyz, I tend to agree. It is not an issue with just Power Wheel. After a full day of use and many, many restarts, Power Wheel is solid. But there is another custom card (rpi-monitor-card) that is now doing the disappearing act. |
@bluemantwo I wonder if the problems you were seeing are build-tool or service-worker caching related. Which build tool are you using (webpack, parceljs, etc.) when you had the problem? And where you using a service worker that was caching things? |
0.116.1 of HA
0.1.4 of Power Wheel
The Power Wheel will often no appear until I refresh the screen numerous times. This started immediately after install of 0.116.1 (from 0.115.6).
No debug info shows up in log.
The text was updated successfully, but these errors were encountered: