Closed Snuffy2 closed 2 years ago
Hi @Snuffy2 , I managed to do what you describe with multiple "harmony-card" and a combination of the "conditional" card (shows if the state of the sensor.harmony_xxx_activity is not 'PowerOff') and the "custom:vertical-stack-in-card" (find on HACS, shows the cards in a vertical stack with no line separation).
Exemple :
type: custom:vertical-stack-in-card
cards:
- type: custom:harmony-card
entity: remote.xxx
activities:
- name: Activity 1
device: Device x
- name: Activity 2
device: Device y
buttons:
'0':
hide: true
'1':
hide: true
'2':
hide: true
'3':
hide: true
'4':
hide: true
'5':
hide: true
'6':
hide: true
'7':
hide: true
'8':
hide: true
'9':
hide: true
volume_down:
icon: mdi:volume-minus
volume_up:
icon: mdi:volume-plus
volume_mute:
icon: mdi:volume-mute
skip_back:
hide: true
play:
hide: true
pause:
hide: true
skip_forward:
hide: true
dpad_up:
hide: true
dpad_down:
hide: true
dpad_left:
hide: true
dpad_right:
hide: true
dpad_center:
hide: true
xbox:
hide: true
back:
hide: true
a:
hide: true
b:
hide: true
x:
hide: true
'y':
hide: true
- type: conditional
conditions:
- entity: sensor.harmony_xxx_activity
state_not: PowerOff
card:
type: custom:harmony-card
entity: remote.xxx
hide_activities: true
activities:
- name: Activity 1
device: Device x
...
Hopes this helps !
Interesting approach @kalhimeo, thanks for sharing. I may give it a try.
This issue is being marked as stale due to lack of activity
Just installed and everything is working well. Great job! I was wondering if there was any way to set it to hide all of the buttons except the Activities when the Harmony Hub is off. I'm sure others may not want this, so an option would be great.