sbryfcz / harmony-card

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

Center button on remote doesn't select/enter/ok #3

Closed nikiyao closed 4 years ago

nikiyao commented 4 years ago

Center button on remote doesn't select/enter/ok I can navigate the screen with the arrow buttons but the center button does nothing. Device is a Sony Bravia tv.

nikiyao commented 4 years ago

This is the error that shows up in my logs

Log Details (ERROR) Sun Feb 02 2020 12:16:13 GMT-0500 (Eastern Standard Time) Sending command OK to device 59037218 failed with code 566: Command not found for device id:59037218

sbryfcz commented 4 years ago

Thanks. I'm going to take a look at this. I may have to make it so that you can specify the button commands in the configuration. I'm thinking of using key-value pairs of the form "button":"command"?

I'm thinking the configuration could look something like this:

- type: 'custom:harmony-card'
  entity: remote.living_room_hub
  activities:
  - name: Watch TV
    device: Sony Bravia tv
    buttons:
    - dpad-center: Enter

You will need to look at your harmony .conf file under configuration to learn what the appropriate command needs to be. It doesn't seem like the Harmony API has a clean way to automatically identify that, and I'd rather make it configurable for all users.

And I'd publish a list of all the buttons/commands for this card.

Thoughts?

nikiyao commented 4 years ago

I think that's a great idea. When you update I can test

sbryfcz commented 4 years ago

Thanks. I'll try working on it this afternoon and cut a new release.

sbryfcz commented 4 years ago

I have exposed some new configuration in the latest release https://github.com/sbryfcz/harmony-card/releases/tag/0.9.0.

Would love if you could test and give feedback.

nikiyao commented 4 years ago

I've configured the button according to the conf file but it's still not working for that button, the stranger part is that I don't see any errors/

sbryfcz commented 4 years ago

Can you post your yaml? I will say that sometimes hacs doesn't update the card immediately. Others have reported needing to clear their browser cache and/or uninstalling and reinstalling the plugin