Thanks for your help Mayker, but I figured out what’s going bad.
Your custom-card is not the cause
It was decluttering-card which I use. In my template I use a custom:button-card. In this configuration, you MUST have decluterring-card js file to be included AFTER button-card js file.
If not, the decluttering-card is not finding the button-card element and display an error.
I tried so many things before trying this…
Sorry for the confusion, but a comment in another thread has make beleive this problem was solved by custom-header.
Thanks for your time and great job !
[UPDATE]
this method seems to improve the loading but is not bullet proof. Sometimes I have still some errors. Anyway, I spent too much time in this debug ^^
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
229
Release 1.1.4
This one is an early Christmas present and includes a new mode: split_mode. This will split the header in two and place one as a header and one as a footer ( thanks to @JKW for the suggestion ).
Please, understand that if there are issues with this release I may be slow to address them as it is the Holidays and I’ll be spending my time with family.
Uses default HA header text as default for header_text
Adds shadow to header, can be toggled with shadow: true or shadow: false
Adds split mode to split header into a header and footer, flip order with footer_mode.
anyone else having trouble like I do with the header icons in footer mode being in the way of the iOS handle for swiping the screen? No way I can swipe through the icons, instead the screen swipes to the other app…
the header ba is much closer to the edge when in footer mode, than when in header mode, which makes for a difficult choice in split mode. Have the marquee in the footer could be of course, but somehow takes away the charm of it, while the icons in the footer are unworkable…
mayker
(maykar (pronounced "maker" with a southern accent))
251
Think I just need to update swipe navigation to ignore swipes on the new Custom Header elements, watch for an update to it in a bit.
Just implemented this on my wall tablet to display only two tabs (as icons) of my full Lovelace and it works well.
Was wondering if there’s a way to add a space between the tab icons in the header bar as they seem very close when no text is used.
mayker
(maykar (pronounced "maker" with a southern accent))
263
To keep this thread clear of giant codeblocks and screenshots related to the unsupported and entirely unintended feature of HTML and other crazy templates for Custom Header, I had @ludeeus split the thread. Earlier posts referencing this feature were moved over there and I would appreciate the conversation being continued in that thread. Thanks!
mayker
(maykar (pronounced "maker" with a southern accent))
264
My response to you was accidentally moved over there as well, so just in case I’ll put it here:
This looks like a bug, I should add styling for an empty header_text. As a workaround for now you could just use header_text: ' '. I’ll have this fixed in the next release.
I am referring to the two icons top left in the header to select the different views, I was wondering if it was possible to altar the spacing between theses.
even though tablet user configured hide_header: true, still it’s not working.
Can someone help me?
mayker
(maykar (pronounced "maker" with a southern accent))
268
You explained it just fine, but I apparently read " between the tab icons in the header bar" as " between the tab icons AND the header bar". Interesting that my misread resulted in finding another bug.
You could add custom CSS to the tabs by using all_tabs_css: 'padding: 0 15px;' The zero is for padding above and below and the 15px is for the padding on both sides. Increase as needed.
mayker
(maykar (pronounced "maker" with a southern accent))
269
I added a “fix” to default_tab to keep it from triggering on every refresh of the page, but this seemed to have caused issues on some browsers. In the next release I will be making that fix configurable and off by default. Aside from that, if you want to hide both the header and sidebar use kiosk_mode: true instead of hide_header and disable_sidebar. Also, swipe navigation does not exist in Custom Header. See here.
Hi Ryan,
I was wondering if we could set a generic active tab color, while respecting color settings for some individual tabs/icons set in the tabs_color:
thanks for having a look.
mayker
(maykar (pronounced "maker" with a southern accent))
272
active_tab_color: black
tab_indicator_color: black
tabs_color:
phones_tablets: >-
{{state_attr('sensor.family_home','icon_color')}}
both active tab icon and indicator are black, except for the tabs color phones_tablets, which follows the template.
FR: allow the indicator to be set as the tabs_color, so it would follow suit:
the naming of the options is a bit unsystematic as it is, might need some careful re-wording