Giter Site home page Giter Site logo

marrobhd / tv-card Goto Github PK

View Code? Open in Web Editor NEW
174.0 1.0 76.0 598 KB

📺 TV Remote Card

License: Apache License 2.0

JavaScript 100.00%
home-assistant lovelace-ui lovelace hassio custom-cards home-assistant-frontend home-assistant-custom homeassistant-tv-card lovelace-card tv-card

tv-card's People

Contributors

andersteern avatar fstani avatar iantrich avatar manuellr avatar mozan avatar rogelio-o avatar villhellm avatar wojtek14a avatar wrt54g avatar zephirenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tv-card's Issues

ui-lovelace.yaml

Sorry to ask, if i dont have a ui-lovelace.yaml do i create it?

TV Card Stops Working After 0.110.0

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

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:

WOL on Power Button

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... 🤜🤛

Not working from core-2021.11.0b0

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

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:

image
image

menu does nothing

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?

power_on + power_off does not display

Screenshot 2020-06-19 at 13 03 13

Screenshot 2020-06-19 at 13 10 26

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.

Optional Directional Pad

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.

Separate Play and Pause buttons

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.

Add custom buttons

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

Purpose of tv-card-editor.js

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.

Only render buttons with configured actions

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

Adding "select" results in mapping error

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.

Add stop button to card

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.

🚨 I'm looking for maintainer(s)!

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!

"custom element doesn't exist" in some devices

Checklist:

  • [ x] I updated to the latest version available
  • [ x] I cleared the cache of my browser

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:

I can't see the applications in the remote card...

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

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!

Holding down buttons = repeat command

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.

Implement Haptics

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.

Separating power buttons

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).

Doesn't show up in list of cards

Checklist:

  • [✔️] I updated to the latest version available
  • [✔️] I cleared the cache of my browser

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.