Anashost / MY-HA-DASH

81 stars 8 forks source link

input_boolean.on_state #8

Closed AarvdH closed 7 months ago

AarvdH commented 7 months ago

Hi, What a magnificent work you did on this dashboard. I now have Home Assistant for two years and is growing and growing. The right dashboard stayed behind until now. Thanks for your effort. I don't have an issue but i can't really figure out where for the 'input_boolean.on_state' is. I did apply it off course, and I can see that in the hole code you have been using it. But it doesn't matter if it is On or Off. Can you please explain it a little bit further for me?

Thank you. Hans.

Anashost commented 7 months ago

Really glad you like it, As of the input_boolean.on_state it should stay on all the time.

The reason behind this approach is that, in some cards, like the mushroom cards (in the header for example):

Screenshot_20231124_132422_Home Assistant

The card won't be colored unless it has an entity with on state. So I'm using the input_boolean.on_state for cards that I want to be colored all the time.

In the lights card in the header for example, I'm not using that because I want it to be colored only if a light is turned on. So it gets its state from group.all_lights

Hope it's clear now :-)

AarvdH commented 7 months ago

Yes all clear and works as it should be... Thank you