Hi. First big thanks your custom-header custom part. Thats give me so much more space my tablet view.
Just have on questions is that possible to get your custom header project or is that allready there. I use your compact_mode: true. I think is that possible to get normal clock going there?
Here is example picture with paint, what i try to explain
@mayker I went through the docs but canât find any easy way to center the tabs. In footer mode itâs still justified to the left which looks odd. Any easy way to accomplish that?
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?
mayker
(maykar (pronounced "maker" with a southern accent))
522
Itâs a reported bug and will be fixed as soon as I get the chance. Havenât had much time to work on anything recently, but should be back at it soon.
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?