Depending on what you have, you can use templates for that as well. Templates from button-card (that’s what this is basically about) can be inherited from other templates. So what you need in the end, is a template like my_chips that inherit from the default chips.
Like this:
first_page_chips → inherits from my_chips → inherits from chips.
I’m guessing you took the idea from this comment from @paddy0174?
That’s what I’m referring to
Thats correct, yes my inherits as I think of it is just from the standard button_card_templates.yaml file. So nothing fancy there. Maybe Paddy0174 have some tips, hint hint paddy;)
In this case you need to adapt a few things, to make it run. You need to adjust the file locations and you need to refit the theme files.
I can just give the mysterious hint, that you should wait a few days. There are some people working on a little project to make this “theme” (technically it is unfortunately not only a theme) easier to use and maintain. One of the things included will be a change in file locations and coming with this, a structure that already fits the use of themes like you (and all users of HACS) do. Stay tuned!
I’m assuming you’re trying to fix an issue is your screen is to narrow?
There is a solution but not an easy one. And it will require you to do some tinkering on your own
If you take a look at the following repository:
He has build a different layout but while using the same techniques
(button card + heavily depending on templates)
In the file ui-lovelace.yaml he has defined a default layout for his tiles + some different configurations when the mobile screen is portrait or landscape.
I have been using this method for 4 years now and am super happy with it, there might be another way to do it now.
I make an API call with my phone using Tasker to change the value of the input select according to the wifi network I’m connected to.
I then use a history_stats to find out how long I have been in a state
This sensor is reset to 0 when I go to bed (launch of the automation: automation.thomas_nuit_on)
Could anyone do a little explanation a bit more complete than just those command lines from the configuration.yaml? I have no experience and I can’t get it to work, neither can I get it by copying the views.
As this could be a bit more extensive, it could be easier, when you start with some info if you know custom!button-card and which mode (yaml, storage or ui) you are using.
I’m using default mode because I don’t have experience with yaml. Is there a possibility to use this without switching to yaml?
The problem I have is the following. After following the three installation steps, when I copy one of the example cards I have an error of templates are missing.
This is possible, but not very clear due to the extensive code. If this does not bother you, simply copy the template code you want to use into the raw config above the first line views: The template code must begin with button_card_templates: (no indentation), the rest has to be indentated, for example: