marrobhd / firetv-card Goto Github PK
View Code? Open in Web Editor NEW๐บ FireTV Remote Card
License: Apache License 2.0
๐บ FireTV Remote Card
License: Apache License 2.0
I love where this is heading. I implemented this on my firetv with a sony bravia tv. Most things work but cannot get the following to work.
Commands not working.
All the commands give the same error.
Failed to call service remote/send_command. Service not found.
All commands work using the services tab in the Developer section.
Here is my configuration. If you could take a look that would be great. I am on 0.107.1 release of HA. I even removed sun.sun as the entity and added the sony tv entity. Same effect.
type: 'custom:firetv-card'
entity: sun.sun
name: Family Room TV
tv: true
power:
service: media_player.toggle
service_data:
entity_id: media_player.family_room_tv
left:
service: androidtv.adb_command
service_data:
command: LEFT
entity_id: media_player.family_room_fire_tv
up:
service: androidtv.adb_command
service_data:
command: UP
entity_id: media_player.family_room_fire_tv
right:
service: androidtv.adb_command
service_data:
command: RIGHT
entity_id: media_player.family_room_fire_tv
down:
service: androidtv.adb_command
service_data:
command: DOWN
entity_id: media_player.family_room_fire_tv
select:
service: androidtv.adb_command
service_data:
command: ENTER
entity_id: media_player.family_room_fire_tv
back:
service: androidtv.adb_command
service_data:
command: BACK
entity_id: media_player.family_room_fire_tv
home:
service: androidtv.adb_command
service_data:
command: HOME
entity_id: media_player.family_room_fire_tv
menu:
service: androidtv.adb_command
service_data:
command: MENU
entity_id: media_player.family_room_fire_tv
volume_up:
service: media_player.volume_up
service_data:
entity_id: media_player.family_room_tv
volume_down:
service: media_player.volume_down
service_data:
entity_id: media_player.family_room_tv
volume_mute:
service: media_player.volume_mute
service_data:
entity_id: media_player.family_room_tv
is_volume_muted: true
play:
service: media_player.media_play_pause
service_data:
entity_id: media_player.family_room_fire_tv
reverse:
service: media_player.media_previous_track
service_data:
entity_id: media_player.family_room_fire_tv
forward:
service: media_player.media_next_track
service_data:
entity_id: media_player.family_room_fire_tv
hi,
I installed from hacs, I don't see any errors in the logs but I don't see the graphic structure of the card and not even the services to be configured.
where am I wrong?
b&r and tnx
i wrote in my ui:
Checklist:
Release with the issue:
v0.1.1
Last working release (if known):
unknown
Browser and Operating System:
Google Chrome, 81.0.4044.138 (Official) (64-bit)
Windows 10 10.0.18363
Description of problem:
In the README section you specify that after setting tv
parameter to false
both volume and power buttons will be hidden. From my observations I can tell that only volume buttons are hidden, power ones remain as there were with tv
set to true
.
Javascript errors shown in the web inspector (if applicable):
Additional information:
I would like to hide power buttons as well, either with tv: false
or another dedicated config variable.
As many of you probably have noticed, this project hasn't been very active in the last years.
I currently do not have enough time to work on it and therefore I'm looking for one or more people that would be interested in maintaining / developing on this and the other FireTV-Card project.
Some steps were for example to migrate to typescript.
Contact me if you are interested.
Thanks to all users & contributors!
Checklist:
Release with the issue:
Latest
Last working release (if known):
NA
Browser and Operating System:
NA
Description of problem:
The buttons do not do anything with FireTV cube.
I expect that when I push the mute button, it mutes, but it does not.
Javascript errors shown in the web inspector (if applicable):
NA
Additional information:
Re-mapping the buttons after figuring out which each is through androidtv.learn_sendevent has gotten me to the following workaround. I'm not sure if this is unique to my FireTV or all...
To get the commands for call service, I used developer tools pane to call androidtv.learn_sendevent and press the button a bunch of times... then in developer tools looked at the attibutes of my media player for the adb_response attribute as documented in the androidtv git repo
Thanks for the awesome card and I hope the information provided is helpful for the next person in my shoes.
type: custom:firetv-card
theme: Backend-selected
tv: false
entity: media_player.fire_tv_192_168_2_27
name: FireTV Cube
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
Why are there 2 power buttons? Can I control 2 devices with this card? IE Sound bar and TV?
Also, could you allow separate services for turn_on and turn_off like how universal media players do it?
commands:
turn_on:
service: switch.turn_on
data:
entity_id: switch.living_room_tv_power
turn_off:
service: switch.turn_off
data:
entity_id: switch.living_room_tv_power
Is your feature request related to a problem? Please describe.
Is it possible to have the volume buttons controlled by your card without having the TV power buttons. I use scripts to turn on the TV and set the source. I have attached a sample from my configuration
Describe the solution you'd like
Have options for TV Power and TV Volume instead of the current TV
Describe alternatives you've considered
Currently have have a your card in a vertical stack card. I have the volume controls as a grid card in the bottom layer.
Additional context
Add any other context or screenshots about the feature request here.
Checklist:
Release with the issue:
2021.11
Last working release (if known):
2021.10
Browser and Operating System:
iOS app of Homeassistant
Description of problem:
All icons of my Lovelace card are gone.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Checklist:
Release with the issue: 0.110.0
Last working release (if known): 0.109.6
Browser and Operating System: Windows 10, Chrome 81
Description of problem:
After upgrading to latest version all icons are missing (both in editor and lovelace card). Probably has to do with a new way of dealing with icons described in the release notes.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Could you also provide the keycodes for volume up/down/mute?
Also the power keys are not working somehow for me?
Play/Pause/Right/Left/movement does work though?
Copied the readme configuration..
2020-07-09 23:59:44 ERROR (MainThread) [frontend.js.latest.202007020] https://test123.org:8124/hacsfiles/firetv-card/firetv-card.js:272:11 Uncaught TypeError: Cannot read property 'service' of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.