For some reason my primary-color is not updated but stays blue.The other colours work fine? Yaml indenting is okay from what I can tell. Any idea why this might be the case?
By the way, I have added slightly rounded corners with ha-card-border-radius: 5px for the cards to your theme for me.
This looks imho even more material like.
Still a lot to tinker and play with
Thank you for your great work!
Btw, how did you combine your Button Cards for the lighting modes within one card @naofireblade ?
No matter what I try, I always have empty space between the buttons (see screenshot top right).
nice indeed
missed it before maybe, but what’s the card in blue for the weather conditions? could you share the code for that please? I like the condensed information set
If you haven’t done so yet, you must first download the simple-thermostat.js file and save it in the “www” directory under your Homeassistant root directory.
You can find the file here: https://github.com/nervetattoo/simple-thermostat/releases/tag/0.18.1
If you don’t have a “www” directory yet, you can simply create one and save the file in it.
Then you have to refer to the corresponding file, preferably via the Lovelace Raw Editor:
This belongs at the beginning of your lovelace raw file.
Then you can simply add the new simple thermostat card (preferably also via the raw editor).
In my example I packed the two thermostat cards into a vertical stack so that they always stay together:
This theme is pretty close to exactly what I’m looking for, a nice clean material type style (yeah, I’m a Google fan boy
But it’s not quite looking like the screenshot
And what variable would I change to change the colour of an active light card, like I’ve highlighted?
And the colour of the header bar?
Many thanks for the awesome work!
If you want to use that for light scenes like me, you will need template sensors to check which scene is currently active. These template sensors decide if the icon is highlighted in a blue color = active.
script_livingroom_lights_bright:
value_template: "{{ is_state('light.todesstern', 'on') and states.light.todesstern.attributes.brightness|int == 254 }}"
script_livingroom_lights_normal:
value_template: "{{ is_state('light.todesstern', 'on') and states.light.todesstern.attributes.brightness|int == 127 }}"
script_livingroom_lights_cozy:
value_template: "{{ is_state('light.couch', 'on') and states.light.couch.attributes.brightness|int == 76 }}"
script_livingroom_lights_off:
value_template: "{{ is_state('light.couch', 'off') and is_state('light.todesstern', 'off') and is_state('light.papierlampe', 'off') and is_state('light.kugel', 'off') }}"
Meanwhile I added harmony activity buttons as well:
So far I have used input_booleans and automations for this, which also works great.
But I’m definitely gonna take a look at your solution to get rid of the gaps.
Thank you
…::edit::…
I just found out that I can continue to use my previous input_booleans with your code as well
Thanks again @naofireblade
It looks like some great things are happening here and I don’t want to get in the way!
Still, when something like this is made available, it would help to include more details about the install process. It would cut way down on noob questions like mine, and it would make the whole project seem a little more accessible to beginners. Thank you!!
I get this activated blue border when I click one of the icons. I’ve tried to reverse engineer in developer console in browser to see if this is something in the css, but I can’t figure it out. If I click anywhere else on the screen, the blue border goes away, but I rather not have it there at all. Any tips?
I did not tried the header bar yet. But I think white fits well?
The lamp icon will have the correct blue color (accent-color) if you set the light to full brightness. If you dim it down, home assistant will dim the icon. Therefore you see a darker blue.