Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request (?) - or I have not found out how to do this, maaaaybe a bug?

promufa opened this issue · comments

I am loving Bubble cards and the new relase with sub-buttons is just awesome!

What I am looking for is a way to have the button press do one action but the button colouring to be based off the state of a different entity.

Use case:
I have a RF ceiling fan that I am controlling though HA via a broadlink RF controller. I have mapped the Bubble card buttons to call the relevant remote.send_command scripts but I cannot see if the fan / light are on or off when not physically in the room.

image

I have also installed power meters (Shelly) in the fan so I have sensors to know whether the fan is on or off, and based on the power draw, I can also calculate the speed of the fan. The reported wattage is changing the state of individual boolean helpers:
image

I have already tried having the bubble button assigned to the helper and the tap action to call the script, but it still does not seem to colour the button based on the state of the helper.