HI,
sorry for being late to the party in using the built-in vars, so please allow me this question, which might seem rather basic…again, sorry
using the {{ viewTitle }} in the header shows the correct viewtitle alright, which is very nice, and prevents the need to hove the current tab/view for the popup title. So cool.
Only thing is, it doesn’t change on view/tab change, but seems to wait for the next minutal refresh. Is this correct? If so, could you please automate the updating of these templates (or the vars Title, Path and Index) which of all vars seem most in need for this automation) per view change?
What i actually want is, to show the title using the {{ viewTitle }} for all my pages except the homepage where i want to use a message like
cards:
- type: markdown
content: >
{% set time = states('sensor.time') %}
{% if '00:00' < time < '06:00' %} ## Goeie Nacht !
{% elif '06:00' < time < '12:00' %} ## Goeie Morgen !
{% elif '12:00' < time < '18:00' %} ## Goeie Middag !
{% else %} ## Goeie Avond !
{% endif %}
not sure how to do that either (in the text header)
mayker
(maykar (pronounced "maker" with a southern accent))
525
Header text is removed in compact mode, that’s what makes it compact.
No, the menu button’s only use is to expand/hide the sidebar so it is hidden with the sidebar.
See the 4 comments above your post, as of right now there is a bug with showing the view’s title as a text option. When that is fixed you’ll be able to do what you’re looking for using header_text: (when compact mode is off) or button_text:, there are many examples in this thread, in the template showcase thread, or in the docs. To have a certain tab show different text than the others look at how to do exceptions
You also have issues in your config. button_text: none is not a valid option and swipe is not included in Custom Header (use Swipe Navigation instead):
mayker
(maykar (pronounced "maker" with a southern accent))
528
That is not the header, it is the status bar from the app. Custom header doesn’t have control over it, as far as I know the iOS app will always use your primary color for the status bar.
Hi @mayker,
I’m looking around to find the ability to disable the click on a specific tab.
I’m not able to find it, is it possible with Custom Header?
mayker
(maykar (pronounced "maker" with a southern accent))
530
No way to disable a button’s or tab’s actions, just hide them completely. I’ll consider it as a feature since it seems that, at least with buttons, people really want to keep the ability to use them as text, templates, etc and not have them be interactive.
I haven’t been working on stuff for a bit as life has gotten in the way, but head over to the github and add this as a feature request if you’d like (my memory isn’t what it used to be and that way it’ll be on my radar).
Hi @mayker,
I have a few days ago installed HACS after much delay and the first thing i installed as part of that is CH. Thanks for such a great customizable plugin. I have been playing around with it for 2 days now and no matter what i did, I am not able to get date and time showing as part of the options button. If I replace that with an icon, it is able to show properly. Not sure what I am doing wrong? I am running HA 0.106.2 and CH 1.3.2. Below are the codes and screenshots…
With template
custom_header:
background: 'rgba(155, 155, 155, 0.25)'
button_icons:
options: '{{ time }} {{ date }}'
voice: 'mdi:death-star-variant'
compact_mode: true
Hi @mayker, I just installed Custom Header and, after logging in as my daughter, adjusted the main settings that disabled UI manipulation. I assumed (incorrectly) that this would be a per-user setting, and now I can’t disable Custom Header as suggested in the docs by adding ?disable_ch to the URL. Each time I do I’m logged out and redirected to the login screen.
I should note I also just updated to ha core 1.6.2 last night as well. Any ideas on how I can revert these changes and gain access to edit the UI again?
Thanks…
mayker
(maykar (pronounced "maker" with a southern accent))
535
Login and be sure to hit the “remember login” button on the bottom right. Then you’ll be able to add ?disable_ch without it logging you out. If you don’t hit “remember me” (or however it’s worded) then every page refresh will just go to the login screen.
Then checkout how to add per user config via exceptions.
@mayker - sure enough, that worked. Thanks so much for the quick response and the exceptions docs link - I’m looking forward to experimenting more with this plugin!
Hi there, getting my head around all this so it might be a stupid question but here we go. I tried the kiosk mode but I can get out of that mode what is it that I don’t see? thanks
mayker
(maykar (pronounced "maker" with a southern accent))
539
First 2 important notes listed here. In short, add ?disable_ch to the end of your URL.
I get this question once a week or more. Every option that removes functionality, like kiosk mode, has a warning sign next to it in the readme and in the editor. The editor has a large warning at the top explaining what to do and the important notes in the readme include this info as well.
I’m not saying all this to chastise, I am asking how I can make this more clear for users. Is there anything I can do to make this more apparent?