just to be 100% sure: I do need the ; after each line in the template do I?
mayker
(maykar (pronounced "maker" with a southern accent))
1218
Sorry, yes you do (for multi line statements). I’ll update my examples. Since the config renders it as one long string the semi-colon let’s it know when each statement ends.
( I’m sure there may be better ways to do it and will update you if things change. )
I have this issue as well and was about to post about it in github but was checking here first. I can confirm it works in chrome but not firefox and I have tested this on multiple machines (home/work/laptop).
Just an FYI / PSA for people using the babelized “legacy” version of CCH that I was maintaining for a while and then @mayker took over.
I just did a system update on my Fire 7 tablet and FireOS updated to verison 5.6.4.0 and wonder of wonders, they updated the system webview to v. 70+ and for me at least, Fully Kiosk now works perfectly with stock CCH (and any other .js that is included in Lovelace as type: module).
I’m getting this error with 1.3.9 after reload (F5) browser.
2019-09-25 23:23:50 ERROR (MainThread) [frontend.js.latest.201909191] http://192.168.77.67:8123/community_plugin/compact-custom-header/compact-custom-header.js:779:36 ReferenceError: defaultTabRedirect is not defined
EDIT: And a big gap between the header and the badges.
EDIT 2: This gap is in every view until i open a panel view, then it’s gone until the next refresh .
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
1226
1.4.0 fixes my issues when using Firefox. Thank you.
2 Likes
mayker
(maykar (pronounced "maker" with a southern accent))
1230
I think this was due to a bug in CCH & panel mode. Which explains why it was only on views with layout-card. Should be fixed in the latest release (1.4.0)
Hi, although I was not able to find a typo in the URL there was something wrong. I navigated manually to the js file, copy/pasted it to the config and now it is working.
suddenly noticed that I might experiment a more structural issue of CCH not auto updating the screen/display.
While I have reported my custom icons not the be updating with the state of the sensors they are using (while these same templates/sensors do change in the regular windows) (and which could have been caused by not having ‘return’ in the templates) I now notice that changing a theme, doesn’t automatically change the CCH color either. I need to manually refresh the window to get the icons, and the theme colored menus bar to adapt accordingly.
after theme change:
and a refresh:
this is on both Safari and Chrome Mac, Ha 99.2 CCH 1.4
I noticed this since updating to home assistant 0.99 too. The header colour does not update when the theme is changed. It takes a page refresh. I assumed it was a home assistant problem but it could be CCH. No idea how to tell which is responsible.
mayker
(maykar (pronounced "maker" with a southern accent))
1235
From what I’ve noticed, if you change the theme in the user options it will update correctly, but using any other method to change the theme won’t update the header color (keeps it the color it would be for the back-end selected theme. Using frontend.set_theme will only effect the view below the header).
This behavior is the same with or without CCH. You can always check by temporarily removing CCH from your resources to see if the behavior has changed.
How are you changing the theme? Is this what you’re seeing as well?