sbryfcz / harmony-card

A Home Assistant Lovelace Care for Harmony Integration
MIT License
104 stars 12 forks source link

Center button command #69

Closed Toolhead closed 2 years ago

Toolhead commented 2 years ago

For my receiver the command from the center button is "Enter", for my other devices the center button it is "Select". The button sends "Select", which is fine for all devices, except when the device is the receiver. Is there a way that the center button sends "Enter" when the active device is the receiver?

simonesolda commented 2 years ago

Same for me.

werfpsa commented 2 years ago

You can allocate commands per activity to a button and device. So this should be no problem, see example below:

simonesolda commented 2 years ago

Thank you for the confirmation that is possible to use a "per activity button" config. Can you update the docs with an easy example? The one that is present is a "global" custom button and it's not very clear how to do per activity.

werfpsa commented 2 years ago

The presented one is a activity with buttons different from the 'global' definition: The name of the activity is Oppo app. You can also add a seperate device per button. ''''

Toolhead commented 2 years ago

I currently have this:

type: custom:harmony-card entity: remote.harmony_hub volume_entity: media_player.receiver scale: 1.25 activities:

the a-button is now configured as "Enter", but I want the center button to send "Enter" when current activity is "Internet radio" Can anyone show me what to change? Thanks in advance.

werfpsa commented 2 years ago

add the following lines to the buttons section of Internet radio: dpad_center: icon: mdi:checkbox-blank-circle device: AV-ontvanger Onkyo command: Enter

Toolhead commented 2 years ago

@werfpsa Thanks, but could you paste your code in mine, I tried several different, but can not get it right. Excuse me for my ignorance...

werfpsa commented 2 years ago

type: custom:harmony-card entity: remote.harmony_hub volume_entity: media_player.receiver scale: 1.25 activities:

Toolhead commented 2 years ago

Unfortunately it doe not work. I can put the lines and save it. But when I open the code again there are "null" texts added:

werfpsa commented 2 years ago

Do you indent with 2 spaces after buttons and after dpad_center?

Toolhead commented 2 years ago

I did not, but now it is working. Thank you so much!!!