-
Notifications
You must be signed in to change notification settings - Fork 39
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
Card not shown at all after updating to 3.1.0 #623
Comments
Can you please check if there are any errors in the dev console in your browser. And please let me know what is your browser? I have tested your exact configuration with the group I have and everything works fine on Android/Chrome, PC/Chrome, iOS/Safari You can try to refresh the page few times as sometimes browser caches something |
Same issue here in HA 202312.4.
Not sure if the last 4 belong to battery state card. |
The files from https://raw.githubusercontent.com/maxwroc/battery-state-card/* are being downloaded only when the console is open (they are referenced in the .js.map file which is included in the release package - it is useful if you want to debug js locally). But this is not used by the browser to execute sth on the HA page. The actual file which is being loaded on the page is battery-state-card.js and this one doesn't have references to such files like "tslib" etc I was curious if there are some js errors? I assume that if you downgrade everything works again? BTW can you try to play with the card config and for example remove the folowing and check if the cards shows up: secondary_info: '{last_updated}' This part was touched in the most recent update - I'm curious if it might be the root cause |
Let's check how many people will report this problem. TBH the same/similar issues are being reported after every single recent release and it is usually a problem on the side of the user. I need more info to investigate it further. If you can try to play with the config and notice a pattern that when you add/remove something the card shows up it would be really helpful. You can start from something basic like: type: custom:battery-state-card
entities:
- sensor.your_battery_entity_which_worked_before And later add other parts of your current config to this one (one by one) checking if card renders |
Thank you so much for such detailed testing and info. I'll try to figure out something from it in the next couple of days (although I'll be traveling and I don't know how much time I'll be able to spend on it). What I can recommend at the moment only is to downgrade to 3.0.X 😞 |
Yes, solved this as well for me. My pretty simple config was:
I had to remove the |
@maxwroc I referenced two other issues with similar problem descriptions. So fix one problem, solve several issues... :-) |
Thanks! Unfortunately Mon will be the earliest I'll be able to look into it. The only advice I can give now is to downgrade, sorry for the inconvenience |
@bcutter why do you have filter set to 0? I bet this is causing the problem in your case I think all referenced other issues are not related - in all of them the card broke in v3.1.1 and v3.1.0 was working fine |
Upgraded to 3.1.2 but the problem is still there. As mentioned in #630 |
I have exactly the same issue here. |
@dnedeltchev First of all let's not mix two/three things. This issue was reported after the upgrade to v3.1.0. You are saying that this is the version which works for you. The OP's problem in #630 most probably will be fixed in 3.1.1 as indeed there was a bug in filters introduced. The sort issue which you are experiencing is probably a separate third problem. Unfortunately I still don't know what can be the root cause. |
Ah, I did not get taht, just read this one here. |
Hi Max, In which case, #630, should not be marked as duplicate of this one and should not be closed as completed. I'd suggest you reopen #630. |
Just to add, #630, was logged by me and the problem is not fixed in 3.1.1 or 3.1.2. |
Oh ok, I didn't realize that it was you who reported this (and I didn't check it before replying here :) ). Let's continue the discussion about your problem there |
No unfortunately your bet is wrong. Tested it once again (had it there cause at some places I use the filter, on others I use specific entities - I like to use a card in a "have all options there so I don't forget they exist once I come back and copy this one" manner). I think you could read this post #623 (comment) once again where I tested by building up step by step from a minimal version. Filter is irrelevant here. (note: I tested with 3.1.0 and 3.1.2, no difference - still only empty cards!) |
Thanks. I will go through this one more time. There were quite "few" changes in v3.1.0 - I need to think about beta releases - it will be easier to find the culprit |
My card is not displayed, starting from version 1.3.1 with value = battery, without it the data appears Tell me how to roll back to 1.3.0? |
Interesting. That might match with what I tested back in #623 (comment). Card was shown fine until I added (via include or entities) entities with battery values. Rolling back is easy if you installed using HACS. Select the frontend integration, re-download and select the older version. Reset frontend cache, done. |
Please note: tested https://github.com/maxwroc/battery-state-card/releases/tag/v3.1.3, no change (cards still not shown at all). |
For me it was not working in 3.1.[01] but started working again in 3.1.[23]. type: custom:battery-state-card
title: Stan baterii
filter:
include:
- name: attributes.device_class
value: battery
sort:
by: state
bulk_rename:
- from: ' Bateria'
- from: ' Battery'
- from: ' level'
colors:
steps:
- '#ff0000'
- '#ff9800'
- '#4caf50'
gradient: true |
@bcutter looking at your config I think that the latest 3.1.4 release dosn't have a fix for your issue but there is no harm to try. If there is anyone who still has problems with not rendering card (with v3.1.4) please let me know |
Tested 3.1.4 - nope, all cards not rendering. |
@maxwroc I still have problems with the update, setup see 3 days ago. |
@bcutter The only reason why I have asked you to try v3.1.4 is that I haven't received any console logs from you so I have no idea what is breaking rendering in your case. And in v3.1.4 I have fixed one bug which was breaking rendering - I was just hoping that this may solve the problem for you too. If you are bored and you don't want to spend more time on this I understand it. I won't be at-mentioning you any more and feel free to close the issue. If you (or anyone else who has the repro) is willing to help further please check the browser developer console for errors related to the card. If nothing is displayed/rendered it usually indicates an error/exception. (to open browser console press F12 if you are on PC or Cmd+Option+C in Safari) |
Just wanted to chime in... Chrome 120.0.6099.129 on Linux does not display the card but the card does display correctly in Firefox 121.0.1 on Linux and on the Home Assistant Companion app on Android. At least that's what's happening for me. |
Did some more digging and went into the Chrome settings and went to "Privacy and security" and clicked "Clear browsing data" then checked "Cookies and other site data" and "Cached images and files" and cleared those for "All time" and restarted Chrome. I had to sign back into HA but the card started working. |
Hi @maxwroc just tried 3.1.5 and it works fine - well done 👍 Thank you |
Just a quick check with 3.1.5 while on the go and away from a desktop browser (this one is from the HA Companion app on iOS): Shown for every entity which should be visible. So if there should be 10 entities, there's 10 times this error. I guess you need the full output, right? Will check on a big screen in roughly 12 hours. |
This gives me enough info. Now I have realized that you have a pretty old HA instance and the status formatting function doesn't exist in it The below setting at the card/entity level should help default_state_formatting: false |
Well I listed the version in the OP. Anyway, adding So that's obviously one setting that changed with v3.1.0 according to https://github.com/maxwroc/battery-state-card#common-options - just wasn't aware of that. Do you know what HA version is the minimum one needed so I can switch from Update: according to
...I'll probably just continue using the |
Describe the bug
After updating from 3.0.1 to 3.1.0, the card is not shown at all.
How to reproduce
Update from 3.0.1 to 3.1.0.
Expected behavior
Card is shown as there are no breaking changes listed at https://github.com/maxwroc/battery-state-card/releases/tag/v3.1.0
YAML configuration
Just one example
Screenshots
Just imagine a white/empty space here...
Version
Battery State Card: 3.1.0
HA: 2023.4.6
The text was updated successfully, but these errors were encountered: