Hi there!
During building a nice (at least to my opinion) horizontal stack button card for quickly accessing my Harmony Hub Activities I ran into a aesthetic issue.
While clicked on Power Off, the buttons grey our, which can be OK.
While switching to Watch TV or to Play Nintendo Switch, all 3 buttons state color change to yellow. Not only for the corresponding activity:
All greyed out (Power Off):
All yellow (in this case activity: Play Nintendo Switch)
I can ‘overrule’ the color state for the buttons (state_color: false) but than I cannot see which Activity is running. Is there a possibility to only color the state button yellow if a certain Activity is active? In practive:
If current activity is ‘Power Off’, 1st button yellow other greyed.
If current activity is ‘Watch TV’, 2nd button yellow, other greyed.
If current activity is ‘Play Nintendo Switch’ only third button yellow, other greyed.
Already I’ve tried to find a solution, but without any success. Anyone who can take a dive into this with me?
This is what I have now:
type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
icon: mdi:television-off
tap_action:
action: call-service
service: remote.turn_on
data:
activity: PowerOff
target:
entity_id: remote.harmony_hub
entity: remote.harmony_hub
show_state: false
name: Power Off TV
- show_name: true
show_icon: true
type: button
icon: mdi:television
tap_action:
action: call-service
service: remote.turn_on
data:
activity: Watch TV
target:
entity_id: remote.harmony_hub
entity: remote.harmony_hub
name: Watch TV
- show_name: true
show_icon: true
type: button
icon: mdi:nintendo-switch
tap_action:
action: call-service
service: remote.turn_on
data:
activity: Play Nintendo Switch
target:
entity_id: remote.harmony_hub
entity: remote.harmony_hub
name: Play Nintendo Switch