dimagoltsman / generic-remote-control-card

Generic Remote control card for HACS
97 stars 22 forks source link

No 'remote' domain entities exposed for the LG tv #17

Closed DennisOtt-git-hub closed 2 years ago

DennisOtt-git-hub commented 3 years ago

LG Integration Question

Your LG examples show 'remote' service calls to entities in the 'remote' domain. I have an LG smart tv that uses the remote control in your lg-new example but no integration I can find for the LG tv exposes a 'remote' entity (remote.living_room_tv). How did this entity get defined in your system?

wube1 commented 3 years ago

Hey DennisOtt-git-hub, how did you get the card to be addable? For me the card shows in HACS but i can't add to dashboard. I raised the issue which is open but so far no response from anyone. Would appreciate the tip or two. Thanks.

DennisOtt-git-hub commented 3 years ago

Once instaled I just added the example code to a to the ui-lovelace.yaml file. The image of the remote specified is included in the HACS directory (www/community/generic-remote-control-card/remotes. The ui code has a call to the remote you desire.

here is the code I used in my yaml.

***

The last section under ‘name': references the remote template you wan to use in the remote directory.

R/

On Aug 30, 2021, at 3:50 PM, wube1 @.***> wrote:

Hey DennisOtt-git-hub, how did you get the card to be addable? For me the card shows in HACS but i can't add to dashboard. I raised the issue which is open but so far no response from anyone. Would appreciate the tip or two. Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dimagoltsman/generic-remote-control-card/issues/17#issuecomment-908640626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2NC2P2IBJVF57TLJS5RO3T7POHLANCNFSM5DAP5LCQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

wube1 commented 3 years ago

Hey, ok so I want to add the samsung remote so i prepared the ir codes as per the example and added this piece of code to raw editor of the dashboard (saved ok after alligning the code). I restarted HA but I can't use or see the card nor remote:

buttons: back: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEjcTNxI3EhMSExITEhMRFBE4EjcSOBITExISEhQREhMTEhITERMSOBI3EhMSOBISEjgSNxM3ExITEhI3EhMSNxMABgCVkxM2EjgTNhMSExISFBETEhISOBI3EjgTEhMSEhISExMSEhMSEhITEjgSNxITEjgSEhI4EjcSOBMTEBMTNxEUEzYSAA0FAAAAAAAAAAAAAAAA bottom: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEjcTNxM2ExISExITEhMSEhI4EjcSOBITEhMRExITEhMSNxMSEhMSExITEjcSOBISExISOBI3EjgSNxITEhMSNxMABgCUlBM2EjgSNxMSEhMSExISEhMSOBM2EjgSExISEhMSExITEjcUERITEhMSEhI4EjgSEhITEjgTNhI4EjcSExITEjcSAA0FAAAAAAAAAAAAAAAA zero: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EzcTEhMSEhMSEhM4EhITNxM3EzcTEhMSExITEhMSExITEhMSExITEhMSExITNxM3EzcTNxM3EzcSOBM3EgANBQ== one: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIJQTEhI4EjgSEhMSExITEhM3ExITNxM3EzcTEhMSExITEhM3ExITEhMSExITEhMSExITEhM3EjgSOBI4EzYTNxM3EwANBQ== two: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIJQSEhM3EzcTEhMSExITEhM3ExITNxM3EzcTEhMSExITEhMSEzcTEhMSExITEhMSEhMSNxMSEzcTNxM4EjcTNxM3EwANBQ== three: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EzcTEhMSExITEhM3ExITNxI3EzcTEhMSExITEhM3EzcTEhMSExITEhMSExITEhMSEzcTNxM3EzcTNxM3EwANBQ== four: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM4EjgSEhMSExITEhI4ExISOBI3EzcTEhMSExITEhMSExITNxMSExITEhMSExITNxM3ExITNxM3EzcTNxM3EwANBQ== five: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EjgSExITEhITEhM3ExITNxM3EzcTEhMSExITEhM3ExITNxMSExITEhMSExITEhM3ExITNxM3EjgSOBI4EgANBQ== six: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EzcTEhMSExITEhM3FBETNxM3EzcTEhITEhMSExITEjgSNxMSExITEhMSExITNxMSExITNxM3EzcTNxM3EwANBQ== seven: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EzcTEhMSExITEhM3ExITNxM3EzcSExITEhITEhM3EzcTNxMSExITEhMSExITEhMSExITNxM3EzcTNxM3EwANBQ== eight: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EjgSExITEhITEhM3ExITNxM3EzcTEhMSExITEhMSExITEhM3ExITEhMSExITNxM3EzcTEhI4EjgSNxM3EwANBQ== nine: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIpITEhM3EzcTEhMSExITEhM3ExITNxM3EzcTEhMSExITEhM3ExITEhM3EhMSEhMSExITEhM3EzcTEhM3EzcTNxM3EwANBQ== exit: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+TEzgRNxI4EhMSEhITExISExI3EjgSNxITEhMSExITEhMROBITETgSNxMSEjgTEhISEhMSOBISExITNxISEzcTNhMABgGSlRI4EjcSNxQRExMRExITEhMROBI3EjgSEhITEhMSFBETETgSExI3EjgSExI3EhQRExITETgSFBETETgTEhI3EjgSAA0FAAAAAAAAAAAAAAAA info: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBQAAABJpMTEhM3EjcTEhMSExETEhM3ExISNxM3EzcTERMSExITEhI3EzcSExISEjgTEhMREhMSExMREzcTNxMSEjcTNxM3EgAFYwABJ0oTAA0FAAAAAAAAAAA= left: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEzcSNxI4EhISExITEhMSExI3EzcSNxQREhMSExETEhMSOBISEjgSExISEjgTNxISEhMSOBMREjgSNxMSEhMSOBIABgCVkxM2EjgSNxITEhMTExETERMSOBI3EjgTEhMSERMSExITEjcTEhM3EhITEhI4EzYSExMSEzYSExI4EzYSExITEjcSAA0FAAAAAAAAAAAAAAAA menu: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI6UEzcSNxM3EhMTEhISExISExI4EjcSOBISEhMSExITEhMSEhI4ExISNxM3EhITEhITEjgSEhI4ExISEhI4EjcTNxIABgCUlBI4EjcSOBITEhISExITEhMSNxI4EjcSExMSEhMSEhITERURNxMSEjgSNxITEhMSExI3ExISNxMSEhMSOBI3EjgSAA0FAAAAAAAAAAAAAAAA mute: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBQAAABIZMTEhITEhITExEUEhITNxM2EjgTNxI3EjgSOBM2EhMSEhMTEjcTEhITEhITEhIUETgSNxMSEjgTNxI3EjcUNxISEwAFHgABI0oSAA0FAAAAAAAAAAA= ok: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEzcSNxI4EhMSEhMSEhMSExI3EjgTNhMSEhMSExITExETEhITEhMSNxITEjgSNxITEjcTNxI4EhITNxITEhMSNxIABgCUlBM3EjcSOBMSEhMSEhITEhMSNxI4EjcTEhITEhMSExETEhMSExITEjcTEhI4EjcSExM2EzcSNxITEjgSExISEjgSAA0FAAAAAAAAAAAAAAAA power: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgAYAY2TEzcTNxM3ExITEhMSExITEhM3FDYTNxMSExITEhMSExISExI4EjgSExITEjcTNxM3EzcTEhMSEzcTNxMSExITEhMABeOTkxM3EzcTNxMSExITEhMSExITNxM3EzcSExITEhITEhMSExITNxM3ExITEhM3EzcTNxM3ExITEhM3EzcTEhMSExITAAXjk5MTNxQ3EjcTEhMSEhMSExISEzgSNxM3ExITEhMSExITEhMSEzcTNxMSExITNxM3EzcTNxMSExITNxM3EhMSExITEgAF45OTEzcTNxM3ExITEhMSExITEhM3EzcTNxMSExITEhMSExITEhM3EzcTEhMSEzcSOBM2EzcTEhMTEjcTNxMSExITEhMADQU= right: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEjcSOBI3EhMSExISExITEhI3EzcSOBISEhMSExITEhMSEhI4EhMSEhITEjgSNxITEjgSEhI4EjcSOBITEhITNxMABf+VkxI4EjcSOBMSEhISExITEhMSNxI4EzYTEhMSExISEhITEhMTNxISEhMSExI3EjgSExM2ExITNxI3EjgSEhITEjgSAA0FAAAAAAAAAAAAAAAA source: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBGAJOUEjgSOBI4EhMSExITEhMSExI4EjgSOBITEhMSExITEhMSOBITEhMSExITEhMSExITEhMSOBI4EjgSOBI4EjgSOBIADQUAAA== top: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAI+UEzcTNhI4ExETEhMSEhMSExI3EjgSNxMSEhMSExISEhMSExITERQSEhITEjgSNxITEjcSOBI3EzcSOBISEhMSOBMABf+UlBI3EjgSNxMSEhMSExITEhISOBI3EzcSExITEhISExITEhMSExISEhMSExI3EjgSExI3EzcSNxI4EzYTEhITEjcTAA0FAAAAAAAAAAAAAAAA volmin: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBQAAABIpITEhIUERMUERITEhITNxI4EjcTNxI4EjcTNxM2EhQRExQ2EhIUERITExITEhITEjgRExI4EjcTNxI4EjcTNxMRFAAFGgABJ0kSAA0FAAAAAAAAAAA= volplus: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBQAAABIZMTEhITEhMSExITEhITNxI4EjcTNxI3EjgTNxI3EhMSExM3EhITNxITEjgSEhMSEjcTExI3ExISNxMSEjgTNxISEwAFGgABJ0oSAA0FAAAAAAAAAAA= channelup: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIZMTEhM3EzcTEhITEhITEhM3ExITNxM3EzcTEhMSExITEhMSExITEhMSEzcTEhMSExITNxM3EzcTNxMSEzcSOBI4EgANBQ== channeldown: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBIAAABIJMTEhM3EzcTEhMSExITEhM3ExITNxM3EzcSEhMSExITExISEzcTEhM3EzcTEhMSExITNxMSEzcTEhMSEzcTNxM3EwANBQ=== guide: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAJSTEjcSNxI4EhISExITEhISExI3EjcSNxMSEhMSEhITEhMSNxI3EjcSNxMSEhMSNxITEhISExITEhISNxI3ExISNxIABfuTlBI3EjcSNxITEhMSEhITEhMROBI3EjcSExITERMSExISEjgROBI3EjcSExITETgSEhITEhMRExITEjcSNxITEjcSAA0FAAAAAAAAAAAAAAAA fastforward: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBGAJSVDzsQOhA6EBURFA8WERQSExA6EjgQOhAVEBUQFREUEBUQFREUEBUROREUEhMQOhAVEDoRORE5ERQRORE5EhMSOBEADQUAAA== rewind: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBGAJOUDzsPOxA6EBURFBAVEBYOFg87EDoQOhEUDxYPFg8WDxYQOhAVDzsQFQ8WEhMQOhAVEBURORAVETkRORE5ERQQOhEADQUAAA== play: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBGAJOUETkRORA7EBUQFRAVEBUQFQ87DzsPOw8WEBUQFRAVEBUPOxA6EDoRFBEUEBURORAVEBURFBEUEDoRORE5ERUPOw8ADQUAAA== pause: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgBGAJKVETkQOhA6EhMQFREUERQQFRA7DzsQOhAVEBUPFhAVDxYQFRE5EBUQOhAVERQROREUETkQFRE5ERQQOhA6EBUQOhAADQUAAA== lastch: call: remote.send_command data: entity_id: remote.rm_mini_3_remote command: b64:JgCMAJSTEzYTNhM3EhITEhMSEhITEhI3EzYTNhMSExISEhMSExISNxI3ExISEhI3EhMSExISEhMSExI3EjcSExE4EjcSNxIABfuUkhM3EjcTNhMSEhITEhMSEhITNhM3EjcTEhISExISEhMSEzYTNhMSExISNxMRExITEhISExITNhM2ExITNhM2EzcSAA0FAAAAAAAAAAAAAAAA name: Samsung remote_template: samsungtv style: | ha-card { font-size: 10px; } h1{ text-align:left; margin-left: 50px; } type: 'custom:generic-remote-control-card'

Also doesn't matter what i put in the config (one of below) I get: Component error: resources - Integration 'resources' not found.

`resources: type: module url: /config/www/community/generic-remote-control-card/generic-remote-control-card.js

resources: url: /hacsfiles/generic-remote-control-card/generic-remote-control-card.js type: module`

Can you maybe correct anything you think i've done wrong? Maybe just to add, I'm running the container HA (no supervisor) version: 20210603.0

Thank you.

DennisOtt-git-hub commented 3 years ago

I parsed your code and it appears everything is there. I add the following to my ui-lovelace.yaml (dropping the button code and just calling the remote_template) just to see if it would display and it rendered the remote image just fine....

I will say that, like most things in HA it was very particular about indention and I have to play with it to get it all right before it would render. But to me it sounds like you may have a different issue if it is complaining about resources being available. I have had a couple of custom cards not work in my instance with the same error. Some eventually correct themselves with restarts, some have never worked. I assumed it was a compatibility issue with the version I was on but I cannot say for sure.... I just passed on those cards. I suspect not everything is compatible.

Unfortunately I am on core-2012.8.7 (with supervisor) and I do everything in yaml code and it sounds like you are using the widgets so I may not be much help.

wube1 commented 3 years ago

@DennisOtt-git-hub, Hi Dennis, i got the card to work. I chose from GUI to manually write yaml and pasted my config. Now i have a problem with error message saying:

http://q:8123/hacsfiles/generic-remote-control-card/generic-remote-control-card.js?hacstag=263901624023:103:26 Uncaught TypeError: Cannot read properties of null (reading 'volplus')

when i press any of my mapped buttons. May i ask if you know a solution to this?

wube1 commented 2 years ago

Hi @dimagoltsman , It's been a while and i still can't actually use the remote. I have the remote graphic present on the card and even text color changes from white to red when i hover the cursor over configured buttons.

So now my question is why it still doesn't work? Maybe i don't understand something here. If this can be used with entity: remote.rm_mini_3_remote and remote.send_command in my opinion it should work. Sample code below:

}, "nine": { "call": "remote.send_command", "data": { "entity_id": "remote.rm_mini_3_remote", "command": "b64:JgBIAAABIpITEhM3EzcTEhMSExITEhM3ExITNxM3EzcTEhMSExITEhM3ExITEhM3EhMSEhMSExITEhM3EzcTEhM3EzcTNxM3EwANBQ==" } }, "exit": { "call": "remote.send_command", "data": { "entity_id": "remote.rm_mini_3_remote", "command": "b64:JgCMAI+TEzgRNxI4EhMSEhITExISExI3EjgSNxITEhMSExITEhMROBITETgSNxMSEjgTEhISEhMSOBISExITNxISEzcTNhMABgGSlRI4EjcSNxQRExMRExITEhMROBI3EjgSEhITEhMSFBETETgSExI3EjgSExI3EhQRExITETgSFBETETgTEhI3EjgSAA0FAAAAAAAAAAAAAAAA" }

Can you please give me an advice?

Let me add that i have configured all the buttons i want via:

platform: broadlink mac: !secret rm_mini3_mac switches:

and they are visible as switches in entities.

Thanks in advance for your help.

dimagoltsman commented 2 years ago

i cant understand this way what is the exact problem, what is the error? what works? what doesnt? what did u change?

wube1 commented 2 years ago

Hi @dimagoltsman , I followed your exmaple in main page and i have the remote graphic present in my card. I changed the commands for my own of course. As i use Broadlink RM mini3, i changed the entity_id to remote.rm_mini_3_remote. Buttons which i programmed change the color on the remote from white to red when i hover mouse over them but when i click on them my rm mini 3 doesn't send the command. In the logs i get: "http://q:8123/hacsfiles/generic-remote-control-card/generic-remote-control-card.js?hacstag=263901624023:103:26 Uncaught TypeError: Cannot read properties of null (reading 'two')"

dimagoltsman commented 2 years ago

ok so follow the logs, you probably missed something creating the new card

wube1 commented 2 years ago

What screenshots or code/log samples i should post here in order for you to help me out?

  1. When installing the card from HACKS there is no configuration - you click install and it's done
  2. In the new dashboard i go to edit and raw configuration editor and paste below code mentioned already few times up in the thread, of course b64 commands are my own and they work as scripts in different dashboard. I can see the remote and click on the buttons.
  3. In resources.yaml i added:

    • url: /hacsfiles/generic-remote-control-card/generic-remote-control-card.js type: module

That's pretty much it

dimagoltsman commented 2 years ago

closing as inactive