marrobhd / tv-card Goto Github PK
View Code? Open in Web Editor NEW📺 TV Remote Card
License: Apache License 2.0
📺 TV Remote Card
License: Apache License 2.0
Will be nice if I can control the icon size.
My remote controller has some additional buttons that I would like to display in this card
I would like to have the possibility to add custom buttons (with custom icons mdi) that could be placed at the top/bottom of the card
something like
top_buttons:
- name: mybtn1
icon: mdi-xxx
service: xxx
service_data:
command: xxx
device: xxx
entity_id: xxxxx
bottom_buttons:
- name: mybtn2
icon: mdi-xxx
service: xxx
service_data:
command: xxx
device: xxx
entity_id: xxxxx
I've followed the instructions but I can not get "power_on" and "power_off" to display. "power" works, but i have different commands for on and off. Everything else works perfectly, and thank you very much for the awesome work thus far!
I've tested in Chrome on MacOS, Home Assistant Companion on iPhone and Safari, all with the same issue. I'm on HA 0.111.4 on Docker and I've used HACS to install your card.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Button presses are not easy to distinguish when on mobile.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Implement haptics as mentioned here https://companion.home-assistant.io/docs/integrations/haptics/
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
First, thank you for this wonderful card.
In many video playing apps on my Apple TV, the right arrow button advances the video ten seconds. It takes many rapid taps to move through a long video, because the tv-card does not allow users to hold a button in order to send repeat commands.
Describe the solution you'd like
It would be very helpful if, for any button, users could set a Boolean such as repeat
, which would cause holding the button to repeatedly call the given service. Users could additionally set a delay between repeated calls, such as repeat_delay: 100
, and even a delay from the initial tap after which the repeated calls begin.
Describe alternatives you've considered
This is particular to the Apple TV but likely generalizable to other devices. The issue on Apple TV's is that the current generation of physical remotes have a touchpad, and you can trivially drag your finger across it to move through the scrubber of even a very long video. But third party controls like Home Assistant's integration only support sending discrete button presses. The pyatv library used by HA has distinct "right" (arrow) and "skip forward" commands—however both function identically in this case, only advancing ten seconds, and it seems hold-to-repeat would be the only remedy. There is no way to skip an arbitrarily large segment of video that could obviate the need for this feature.
Checklist:
Release with the issue: v.0.2.0
Last working release (if known):
Browser and Operating System: Chrome on Chromebook and in the homeassistant app on Android...
Description of problem:
I can't see the applications that I added. Maybe something is missing in the documentation or my code?
I use this YAML:
type: custom:tv-card
entity: media_player.fernseher
name: Fernseher
tv: true
power:
service: script.fernbedienung_tv
service_data:
key: POWER
volume_up:
service: script.fernbedienung_tv
service_data:
key: VOLUP
volume_down:
service: script.fernbedienung_tv
service_data:
key: VOLDOWN
volume_mute:
service: script.fernbedienung_tv
service_data:
key: MUTE
select:
service: script.fernbedienung_tv
service_data:
key: ENTER
up:
service: script.fernbedienung_tv
service_data:
key: UP
left:
service: script.fernbedienung_tv
service_data:
key: LEFT
down:
service: script.fernbedienung_tv
service_data:
key: DOWN
right:
service: script.fernbedienung_tv
service_data:
key: RIGHT
applications:
netflix:
icon: mdi:netflix
service: media_player.select_source
service_data:
entity_id: media_player.fernseher
source: Netflix
prime_video:
icon: mdi:message-video
service: media_player.select_source
service_data:
entity_id: media_player.fernseher
source: Prime Video
youtube:
icon: mdi:youtube
service: media_player.select_source
service_data:
entity_id: media_player.fernseher
source: Youtube
Thanks for your help!
Checklist:
Release with the issue: Latest
Last working release (if known): N/A
Browser and Operating System: Chrome v90, ChromeOS v90
Description of problem: The integration doesn't show up in list of cards, I've installed it via HACS. HA Version core-2021.4.1
Title says it all: there is no option to add a stop button, only play
The tv decoder in my country uses separate buttons for this.
Checklist:
Release with the issue: core-2021.11.0b0
Last working release (if known): core-2021.10.8
Browser and Operating System: Tried on Google Chrome, Edge, Firefox on MacOS and Windows 10. Also in Home Assistant app on Android
Description of problem:
Icons are now showing since Homeassistant core-2021.11.0b0.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Checklist:
Release with the issue: HA 0.110.0, TV Card 0.1.2
Last working release (if known): HA 0.109.6, TV Card 0.1.2
Browser and Operating System: Windows 10 with Chrome
Description of problem: After upgrading to HA 0.110.0, the card becomes blank without any buttons.
Javascript errors shown in the web inspector (if applicable):
None
Additional information:
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!
Sorry to ask, if i dont have a ui-lovelace.yaml do i create it?
Checklist:
Release with the issue:
last
Last working release (if known):
Browser and Operating System:
chrome
Description of problem:
Javascript errors shown in the web inspector (if applicable):
Additional information:
Will be nice if there will be an option to set text per button (with the option to set only part of the buttons, not all)
Is there a possibility to modify the remote layout? What is the purpose of tv-card-editor.js and how to use them in home-assistant.
Can we change the icons?
The current power on button doesn't wake up my tv, if turned completely off.
The smart things integration does send wake-on-lan magic packets to a defined mac address in the local network.
Sending 6 times FF followed by 16 times the mac address on ip/ipx.
Would be awesome and worth a pizza... 🤜🤛
Is your feature request related to a problem? Please describe.
My projector is controlled over RS232 and it takes different command (in HA different service) to power on and to power off.
Describe the solution you'd like
I'd like to be able to define different service to call for right and left power button.
Describe alternatives you've considered
Could use some other button but it looks not right to have 2 buttons to power on and still be forced to use some other to power it off.
Additional context
It would be worth considering using different icons, eg. mdi:power-on
for the left one and mdi:power
for the right one (same as now).
If i try to add "select" to the remote, i get the following error:
Configuration errors detected:
duplicated mapping key (70:1)
67 | device: LG tv
68 | command: MUTE
69 | entity_id: remote.broadlink ...
70 | select:
71 | service: script.lg_change_input
72
Here's my config:
type: custom:tv-card
entity: sun.sun
tv: true
power:
service: remote.send_command
service_data:
device: LG tv
command: POWER
entity_id: remote.broadlink_rm4_pro_remote
down:
service: remote.send_command
service_data:
device: LG tv
command: ARROW DOWN
entity_id: remote.broadlink_rm4_pro_remote
up:
service: remote.send_command
service_data:
device: LG tv
command: ARROW UP
entity_id: remote.broadlink_rm4_pro_remote
left:
service: remote.send_command
service_data:
device: LG tv
command: ARROW LEFT
entity_id: remote.broadlink_rm4_pro_remote
right:
service: remote.send_command
service_data:
device: LG tv
command: ARROW RIGHT
entity_id: remote.broadlink_rm4_pro_remote
select:
service: remote.send_command
service_data:
device: LG tv
command: OK
entity_id: remote.broadlink_rm4_pro_remote
back:
service: remote.send_command
service_data:
device: LG tv
command: BACK
entity_id: remote.broadlink_rm4_pro_remote
source:
service: remote.send_command
service_data:
device: LG tv
command: INPUT
entity_id: remote.broadlink_rm4_pro_remote
volume_up:
service: remote.send_command
service_data:
device: LG tv
command: VOLUME UP
entity_id: remote.broadlink_rm4_pro_remote
volume_down:
service: remote.send_command
service_data:
device: LG tv
command: VOLUME DOWN
entity_id: remote.broadlink_rm4_pro_remote
volume_mute:
service: remote.send_command
service_data:
device: LG tv
command: MUTE
entity_id: remote.broadlink_rm4_pro_remote
select:
service: script.lg_change_input
I dont get this if i make it for example the "info" button.
Play button in this card is Play|Pause button. My remote have different Play and Pause buttons, so need the ability to choose between one Play|Pause button and two separate Play and Pause buttons.
The current version of this card always renders almost all buttons even if I do not need them.
I would like to use this card as an Apple TV remote, and therefore need to make buttons optional
I made a suggestion in a PR on how to solve this.
Feedback is welcome
I added the menu button but there does not seem to be a button on the remote to represent it. is it a duplicate of home?
Is your feature request related to a problem? Please describe.
I am using this to control an IR blaster, but the devices I'm controlling don't have a D-Pad (ex: stereo & projector), so having it show up is a waste of space and extra clutter.
Describe the solution you'd like
I am looking for a way to enable/disable the D-Pad (up/down/left/right/enter) on the remote for devices that don't support it, or only have it show up if you set the values for it like the volume buttons work.
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.