I’ve been struggling for the last few days to get this card to work and keep being met with the red box that says “Custom element doesn’t exist: compact-custom-header”. Here’s my resources configuration:
I also have javascript set to “latest” in the HA configuration. I’m using HA 0.87.1 and from the timestamps above, should be using the absolute latest compact-custom-header scripts. I’ve never been able to get them to work, and am using a variety of browsers from an older webview on Amazon Fire HD 8, to the latest Chrome on Win 10 and macOS. Any guidance is greatly appreciated!
edit: Just for completion I thought it would be good to show my UI config. I’ve tried this both within and outside the first vertical-stack there:
I downloaded the files using wget, but I’ll try copy\pasting.
mayker
(maykar (pronounced "maker" with a southern accent))
392
This indicates that the file is most likely an HTML document, not a js file. So it looks like even if you used wget, you downloaded a webpage instead of the raw file.
After being sure you’re grabbing the raw file, I would add a version number to your resources entry to ensure your browser loads the new version instead of using the cached copy. For example:
Yeah apparently because copy/pasting worked fine. Thanks! The good news: it works. The bad news: it doesn’t seem to be working on Opera mobile (probably due to Amazon Fire HD 8’s crappy Webview). Thanks for your guidance!
mayker
(maykar (pronounced "maker" with a southern accent))
395
@pjv Has been kind enough to provide this for legacy browsers.
Actually after this recommendation it even works properly on Opera mobile. I cleared the browsing data on the tablet, but obviously missed something. Thanks for your tip!
Pretty sure it will work using Chrome on the Amazon Fire HD 8 as long as you use the most recent version. However it will not work if you use Fully Kiosk. Have you tried to update Opera to the latest version?
Thanks. Chrome does behave as expected but I don’t have any options for viewing Chrome fullscreen, hence Opera which does support fullscreen. This is going to work well though, I think.
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
399
Updates
I’ve been doing a poor job posting updates here, so to catch up here’s whats happened in the last few updates.
1.0.0b4
Redirect after clearing cache with URL param.
Don’t attempt to redirect to visible tab if all tabs are hidden.
1.0.0b5
Fix for “disable” option when used in an exception.
1.0.0b6
Add show_tabs option as an alternative to hide_tabs.
Fix for single tab layouts.
It can take up to 60 mins for custom-updater to show the latest update.
FYI,
The issue I was having with exceptions has started happening again and CCH is no longer disabled on Chrome for Android. Config is below, my next step will be to try applying the config on every view instead of using main_config.
user agent:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G950U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.105 Mobile Safari/537.36