Thank you for your consistent development. While migrating I had a small issue (human error) since they hide_* options are not consistent for button configs. You have the button configs as: menu_hide, voice_hide, options_hide… I read it and type hide_voice (maybe I’m dyslexic).
Every other option for main, and tab configs to hide items start as hide_help, hide_tabs, hide_config, etc.
I figure maybe you have a reason for flipping them. Maybe templating or something, but just thought I would point out my observation.
I have uninstalled CCH and installed the new CH using HACS, fixed my ui-lovelace.yaml config, and it’s mostly working, except for two things. I’ve read all the docs and this thread, but I don’t know I’m missing.
First, the time is not following my template - I don’t know why the AM is before the time.
Second, on my Windows desktop in Chrome it looks fine, but in Chrome on my iPad and in the iOS app on my iPhone, the header lays on top of my cards instead of above it.
(…etc…didn’t include all my !includes for views). I’ve cleared cache, with both Ctrl-F5 and using Chrome dev console to empty cache and hard reload. I’ve restarted HA. Doesn’t make any difference. Thanks for any help!
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
44
Have a fix incoming for the reversed text and looking into iOS device issues now.
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
45
Ah, yes. That is very inconsistent and not something I had noticed. I may just change those options to match, but allow them as is as well to keep it from being a breaking change. Thanks!
mayker
(maykar (pronounced "maker" with a southern accent))
48
I need to add something in the docs about the fact that the text options are rendered as HTML and you can hack together some really cool stuff like ian did.
@mayker So here’s another weird thing on my iPhone and iPad. The Custom Header documentation site does not render correctly. Here’s a screenshot from Chrome on my phone. (I edited off the very top for privacy). The upper left corner is missing - I can see what’s under the white rectangle if I slide the screen up with my finger, but it just slides back down again and is unusable. Further, none of the navigation works. The sidebar icon blinks quickly when I tap on an item but nothing else happens. The tabs become underlined when I tap them, but nothing else changes. The same is true if I use Safari. And it’s the same on my iPad. I’m on the newest version of Chrome on all my devices.
Perhaps this is related to why CH doesn’t render correctly on my iDevices?
mayker
(maykar (pronounced "maker" with a southern accent))
56
The reason behind the website not working in Safari and Custom Header having iOS issues are not linked. I will say that it doesn’t matter if you’re using chrome or safari on an iDevice, they’re both using iOS’s webview. In either case iOS devices are a pain to support.
Thanks for the info. You, sir, are totally awesome. Many, many thanks for all your hard work and for the awesome things you have created. I will live in hope for iOS issue resolution…
@mayker It seems this custom_header performs a lot better than your old one. However I have one big question.
The view_css: doesn’t seem to work when the header is hidden
Whatever I try, nothing seems to be happening when I have the header hidden. The reason I ask this is because this was working fine in CCH and my current setup relies on it XD (I would have to find something else if it is no longer possible )
What is going on is that the margins on the view_css do nothing when the header is hidden (whereas in CCH the entire view would just move up or down depending on the settings)
This used to work perfectly fine with CCH, but with CH it doesn’t move the viewport up.
Screenshot 1: How it looked like with CCH (note that the ‘header’ is actually an entities card with margins so that it looks like it is a single header)
Screenshot 2: How it looks with Custom Header, there is always a gap between the header and the first card. I have tried numerous entries with padding, margins and even tried changing the margins on the actual card, but the card would just be cut off.
As you can see, there is a gap between the header and the first card. Which previously could be alleviated by using my above code.
When I set header to true, it works but only the other way around, I can only move the first card down instead of up, when setting a minus margin it will do a plus margin instead).
For now I will have to do with it, but I hope you can (and ofc if you will and if it is even possible with the new component) address this.
Yes it is a Tile. Nothing fancy but does the job for knowing if the dog is home or not. I use it to automate the alarm so it decides which sensors will trigger the alarm depending on if the dog is home or not.
I’d like to keep the main header text, as set in my configuration. It seems there is no option to disable the header_text setting in custom header? only this, which by default replaces the main header:
header_text string 'Home Assistant' Replace the main header text, more info below
Secondly, I must be doing something wrong because my tab templates don’t show, this is my config (and all template are fine perse)