Hello i would like some help with as the title suggests, changing the colour of the button based on the value of the counter. this is the button so far
show_name: true
show_icon: true
type: button
entity: counter.days_since_changing_bedsheets
icon_height: 40px
icon: mdi:bed-empty
theme: Material You
show_state: true
tap_action:
action: perform-action
perform_action: counter.set_value
target:
entity_id: counter.days_since_changing_bedsheets
data:
value: 0
grid_options:
columns: 3
rows: 2
i am new to YAML so set up the button with the visual editor
i found this but didnt quite understand what Russel said and was wondering if this is outdated or not. https://community.home-assistant.io/t/set-custom-button-card-color/311030
i also installed Button Card by RomRider but did not understand it well
the behavior i would like is if the counter value is 0, the button is white, 1 is green, 2 is yellow and 3 is red, being
Hey Everyone, I am trying to build a dashboard with navigation to the other pages which I have done. What I would like to do is change the icon color of each button. For some reason, nothing I am doing is changing the color. It just stays the same. My question is this… what is the best way to set your button icon’s color? I have HACS with c...