Sorry I had not noticed, when I saw the comment I thought it was referring to my
I apologize again
Hey mayker, now that we can set view visibility from the UI is this likely to be depreciated from Custom Header?
It’s a lot easier to hide/show multiple views at ones using your implementation.
No, I’ll be keeping it as is. Being able to combine different conditions in exceptions is one of the most important features of CH.
I read it but unfortunately I didn’t understand a lot.
I have installed custom header in my HA and in my phone and I also added time and some other infos and it is working ok.
Now I want to install the companion app to my wife’s phone.
I am confused regarding the following
- Where should I change the exception config ?
In HA or in my wife’s phone? - From these configurations in the exception config
Which of them should I use in order to create a custom view only for my wife’s phone. Mine and HA should have all.
Sorry but I really don’t understand the terminology of the example at all
@mayker Hi,
i have been using CH to hide options button and side works flawlessly,
Now i want to give like guest of my CCTV tab to a person, i added this settings
custom_header:
exceptions:
- conditions:
user: guest
user_agent: Android #alss trie mobile iphone and removing line
config:
show_tabs: '2'
hidden_tab_redirect: true
disable_sidebar: true
compact_mode: true
options_hide: true
voice_hide: true
the thing is i want Ch to redirect it to tab no 2 as it loads , when removed the line
user_agent: it works nicely on pc not on mobile, when added line user_agent: mobile
the problem is when on mobile (currently android) it does not redirect, it shows my main tab which is no 0 , and on top there is just one tab icon which is tab 2 i have to click it then its there
i want CH to redirect to view no 2 every time on all devices , any idea why its not working on mobiles
TIA
EDIT : ADDED LINE DEFAULT_TAB: AND IT HAS SOLVED MY PROBLEM SO ALL GOOD NO NEED OF USER AGENT ALSO THANKYOU
You set it once in your Lovelace config. You can do it with yaml code, example below, or with the editor by adding exceptions.
custom_header:
# This is where you would set your "default configuration"
exceptions:
- conditions:
user: wife # Your wife's user's name
config:
# This is where you would set the config for your wife.
show_tabs: '5'
In the example above your wife would only see tab 5
Great, it make sense now.
One more question, just to be sure.
I should add her as a new user in - configuration-users-add new user. Then I have to connect her phone with the new user - and after I am changing the custom header. Is that rigght?
Thanks a lot for your help!
Yes make a user for your wife, log her in as that user on her phone. Then add the custom header configuration wherever, doesn’t have to be on her phone. In the config user:
needs to be the user’s name, not username. So, if you make the username wife and the user’s name Patricia, then it would be user: Patricia
I know it is not for you to answer, but if it is something easy please do.
I added a new user = mywife I gave a password - restarted HA but when i try to connect the phone it won’t let me. What am I doing wrong?
I really couldn’t tell you.
To add a user go into the sidebar and hit “configuration” >> “persons” >> “users” then hit the plus.
To logout hit the circle icon with the username at the bottom of the sidebar then hit the red “logout” text.
Hi
I managed to add my wife as a new user. I have the following yaml code
custom_header:
button_text:
options: '{{ hours24 }}:{{ minutesLZ }}'
exceptions:
- conditions:
user: Kiriaki
config:
show_tabs: '3'
My tabs are from left
1=default
2=makis
3=kiriaki
With the above at my wifes mobile HA available is only the 1 (default)
Is it counting the tabs from right (as a start) or is it something else wrong?
Like the URL for each view the count starts at zero. Give this a try:
custom_header:
button_text:
options: '{{ hours24 }}:{{ minutesLZ }}'
exceptions:
- conditions:
user: Kiriaki
config:
show_tabs: '2'
default_tab: '2'
That’s it. Thank you!
it’s the last (I hope)
I tried to add my daughter but although I tried different variations it won’t accept it
custom_header:
button_text:
options: '{{ hours24 }}:{{ minutesLZ }}'
exceptions:
- conditions:
user: Kiriaki
config:
default_tab: '2'
show_tabs: '2'
user: Margarita
config:
default_tab: '3'
show_tabs: '3'
Can’ t I add 1 more person?
custom_header:
button_text:
options: '{{ hours24 }}:{{ minutesLZ }}'
exceptions:
- conditions:
user: Kiriaki
config:
default_tab: '2'
show_tabs: '2'
- conditions:
user: Margarita
config:
default_tab: '3'
show_tabs: '3'
Any info on the status on fixing the Custom Header for HA 0.107? I added some additional info in the GitHub issue, for me it doesn’t work on iOS HA app and not in Google Chrome on Windows.
Thanks
I have rewritten a good bit of Custom Header to work with 0.107 and panels. I have the majority of things working with the new structure. There are still bugs and basic things that need worked out and am working on it as much as I can. I still haven’t been able to look into the iOS app issues as it doesn’t make sense to do so until I have everything working elsewhere. I would say it’s close, but as a rule I don’t give deadlines for releases.
What about a beta version for adventurers and eager?
There would be no point, you would be looking at a header with incomplete styles and occasionally non-functioning buttons. I understand the urge to be on the cutting edge and the fact that many of you may have more free time with the current state of the world, but if you rely on CH the fix is simple: don’t update to 0.107 quite yet. It’s only been 2 days since it’s release.
I trust CH but my ass was also burning, I am on 0.107.1, without serious problems and waiting for your update Greetings and thank you