The hue bulb is on a regular dumb wall switch. The switch gets used more than the light card on my phone. So when thereās no power going to it hole assistant canāt detect the entity. It makes sense and it should say unavailable cause it is. Iām trying to find a way to change the word unavailable to off and get rid of the unavailable icon badge so ot looks better. So ot looks available even when itās not .
Template was my first option, but I donāt think I can put the light slider in template card . Correct me if Iām wrong
Have you considered
a. removing the switch and wiring it to always on
b. putting tape over the switch or using a cover
or c. getting a smart switch to replace it?
But seriously, you could probably do something like this with a conditional card, showing a template card when itās unavailable and the light card when not. However I donāt see any benefit to having it show as āoffā; itāll only be more confusing when you want to turn it on.
My girlfriend will dissaprove of messing with that switch, itās in her office lol
But YES I already have the conditional card set up with exactly what you saidā¦However. I dont know how to make the template card look like the light card. Is there a way to code in the light slider color temp controls that a hue bulb has?
It wont be confusing to me. It will help my OCD of seeing the word unavialble and that litle ugly orange badge icon lol
because i have all recessed lighting and I needed a spot for a 50 dollar light bulb that came with my kit other than the kitchen drawer lol
I actually was able to use card mod to put badge size at 0px. that part worked. I guess I can live with the word unavailable.
Mushroom 2.0 came so close to answer my prayers with the primary and secondary on each card. but I cant customize what secondary says, or else it woudl be perfect. Certiantly not a first world problem. Ill survive lol thanks for the help
Honestly this seems like a great candidate for a generic Mushroom battery card. UI-Minimalist has a dedicated battery card, and it would be nice to add this to Mushroom.
Many thanks for this fantastic implementation. I love it. When did you plan the implementation for the climate card? I canāt really wait . Any way ā¦ fantastic work!
Following a few Screenās of my Tab Dashboard created with Mushroom
Just wanted to add my title card code as Iāve been going round in circles and figured it out after playing with some stuff at work today, something clicked!
It will say hello to the logged in user, give you the number of lights on, how many doors are open and the temperature of whatever sensor you need or add more.
type: custom:mushroom-title-card
title: Hello {{ user }} ^_^
subtitle: >-
Currently {{ states.light | selectattr('state','eq','on') | list | count }}
lights are on, {{ states.binary_sensor | selectattr("entity_id", "search",
".magnet*") |selectattr('state','eq','on') | list | count }} doors are open!
and your bedroom is {{ states("sensor.weather_temperature_masterbedroom") }}Ā°C
ā¦one of these, and red when itās todays date or yellow when itās one day before this date.
Iām currently not getting there (this is color for the text anyhow):
{% if is_state(āsensor.oneoftheseā, ātimestamp.nowā) %}
red
{% elif is_state(āsensor.oneoftheseā, ātimestamp.now minus one dayā) %}
yellow
{%else%}
{%endif%}
Also it has to be something for the background like this:
Is it possible to make template card toggle a switch, but change states (colored vs not) based on a binary sensor?
I have a DIY garage opener using a Shelly1 to activate the door, and a magnetic reed switch to see if its open or close.
So for the button, I would want it to toggle āswitch.garageā, but then the actual visual I would want it to be not colored if ābinary_sensor.garageā was OFF, and colored if it was on. Is that even possible?
Yes, definitely! Would you want us to share code, or can you do this yourself? However a better implementation would be a template cover so you can use it better throughout Home Assistant.
I have tweaked some cards a bit. The only thing left is to change font size and color ? Will you help me if possible ? I want to change the font size in this code.
okay, i almost thought so, currently this threat is taking on an incredibly large scale with replays and in between questions, if you get an answer or find out keep me updated