Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow override of buttons in YAML + support for FireTV cube #1

Closed
jaymemaurice opened this issue Sep 30, 2022 · 3 comments
Closed

Allow override of buttons in YAML + support for FireTV cube #1

jaymemaurice opened this issue Sep 30, 2022 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@jaymemaurice
Copy link

This card (or any others) don't seem to work with my FireTV cube...

I was able to make a different card work by overriding the buttons:

Is it possible to
-add support to override the buttons?
-add support for FireTV cube (without overriding the buttons)

Attached is the YAML for firetv-card for inspiration and the androidtv.adb_command sendevent's that made my stuff work.
I'm not sure if this is unique to my fire-tv cube or everyone's?!

type: custom:firetv-card
theme: Backend-selected
tv: false
entity: media_player.fire_tv_192_168_2_27
name: FireTV
select:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458840 && sendevent /dev/input/event5 1 96
      1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
      458840 && sendevent /dev/input/event5 1 96 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
up:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458834 && sendevent /dev/input/event5 1
      103 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 458834 && sendevent /dev/input/event5 1 103 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
down:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458833 && sendevent /dev/input/event5 1
      108 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 458833 && sendevent /dev/input/event5 1 108 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
right:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458831 && sendevent /dev/input/event5 1
      106 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 458831 && sendevent /dev/input/event5 1 106 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
left:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458832 && sendevent /dev/input/event5 1
      105 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 458832 && sendevent /dev/input/event5 1 105 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
volume_mute:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786658 && sendevent /dev/input/event5 1
      113 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786658 && sendevent /dev/input/event5 1 113 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
volume_up:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786665 && sendevent /dev/input/event5 1
      115 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786665 && sendevent /dev/input/event5 1 115 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
back:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 458993 && sendevent /dev/input/event5 1
      158 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 458993 && sendevent /dev/input/event5 1 158 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
volume_down:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786666 && sendevent /dev/input/event5 1
      114 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786666 && sendevent /dev/input/event5 1 114 0 && sendevent
      /dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4 786666 &&
      sendevent /dev/input/event5 1 114 1 && sendevent /dev/input/event5 0 0 0
      && sendevent /dev/input/event5 4 4 786666 && sendevent /dev/input/event5 1
      114 0 && sendevent /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
menu:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786496 && sendevent /dev/input/event5 1
      139 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786496 && sendevent /dev/input/event5 1 139 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
reverse:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786612 && sendevent /dev/input/event5 1
      168 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786612  && sendevent /dev/input/event5 1 168 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
forward:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786611 && sendevent /dev/input/event5 1
      208 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786611 && sendevent /dev/input/event5 1 208 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
pauseplay:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786637 && sendevent /dev/input/event5 1
      164 1 && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786637 && sendevent /dev/input/event5 1 164 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
home:
  service: androidtv.adb_command
  service_data:
    command: >-
      sendevent /dev/input/event5 4 4 786979 && sendevent /dev/input/event5 1
      172 1  && sendevent /dev/input/event5 0 0 0 && sendevent /dev/input/event5
      4 4 786979 && sendevent /dev/input/event5 1 172 0 && sendevent
      /dev/input/event5 0 0 0
    entity_id: media_player.fire_tv_192_168_2_27
``
@PRProd
Copy link
Owner

PRProd commented Sep 30, 2022

Hello! After I saw that you had posted a similar message on Reddit, I was able to quickly add support for the fire cube device which is already now available.

Could you please re-download this integration and let me know how the testing goes?

Also, I REALLY appreciate the amount of detail you provided! It helps so much! THANKS!

@PRProd PRProd self-assigned this Sep 30, 2022
@PRProd PRProd added bug Something isn't working enhancement New feature or request labels Sep 30, 2022
PRProd added a commit that referenced this issue Oct 1, 2022
Added extensive compatibility options to help with issue #1
@PRProd
Copy link
Owner

PRProd commented Oct 1, 2022

Release 1.3.0 is available for download. Thanks for your help!

@PRProd PRProd closed this as completed Oct 1, 2022
@jaymemaurice
Copy link
Author

No, thank you! I have just tried the latest version and it is working fantastically!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants