#The card you ve designed basically it
1 messages · Page 1 of 1 (latest)
@rough arrow I took your concept with the changing the icon based on another entity. I liked your idea with the lightbulb and the auto indicator. The icon I use (lightbulb-group) doesn't have an auto indicator like lightbulb-auto. So, I decided to make a custom field and act as an overlay. This is what I came up with.
Automation off
The core card allows me to turn the light on/off and, with a double tap, enable/disable AdaptiveLighting for the fixture. Unfortunately, I can't tell by looking whether AL is on or not, so I want to to use the icon with the A when the input_boolean is on (indicating AL is running), or without the A when it's not.
I've attempted to make my new button-card work that way, and it seems to be working OK so far.
Now I need to look into being able to adjust the brightness manually as I can with the core card.
Not sure what happened, but the icon was definitely not updating itself based on the little JS snippet I'd added to the card, then, all of a sudden, it was working as expected...
There is also a hold_action that you could use. I think the double_tap_action would be better for the more-info (brightness) and the hold_action might be better for the AL toggle.
These are the templates that I use for my button-cards if they will be of any use to you. (I know screenshots of code are frowned upon but they're too many lines to post here; can DM if reqested.) The oversized_custom_button template refers to the generic_custom_button template.
If you would DM the text, I'd really appreciate it! Anything that I can get my hands on as a full working example can't hurt in the least.
Yup. Will send in a few minutes. Making some modifications because some of my lights use the auto and some don't. Incorporating toggling the input_boolean right now.