Comments (11)
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.
from generic-remote-control-card.
from generic-remote-control-card.
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.
from generic-remote-control-card.
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....
-
title: Test Samsung Remote Remote Controls
visible: true
path: samsung_remote_controlname: Samsung
remote_template: samsungtv
style: |
ha-card {
font-size: 10px;
}
h1{
text-align:left;
margin-left: 50px;
}type: 'custom:generic-remote-control-card'
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.
from generic-remote-control-card.
@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?
from generic-remote-control-card.
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:
- name: "Volume Up"
command_on: 'JgBQAAABIZMTEhITEhMSExITEhITNxI4EjcTNxI3EjgTNxI3EhMSExM3EhITNxITEjgSEhMSEjcTExI3ExISNxMSEjgTNxISEwAFGgABJ0oSAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABIZMTEhITEhMSExITEhITNxI4EjcTNxI3EjgTNxI3EhMSExM3EhITNxITEjgSEhMSEjcTExI3ExISNxMSEjgTNxISEwAFGgABJ0oSAA0FAAAAAAAAAAA='
- name: "Volume Down"
command_on: 'JgBQAAABIpITEhIUERMUERITEhITNxI4EjcTNxI4EjcTNxM2EhQRExQ2EhIUERITExITEhITEjgRExI4EjcTNxI4EjcTNxMRFAAFGgABJ0kSAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABIpITEhIUERMUERITEhITNxI4EjcTNxI4EjcTNxM2EhQRExQ2EhIUERITExITEhITEjgRExI4EjcTNxI4EjcTNxMRFAAFGgABJ0kSAA0FAAAAAAAAAAA='
- name: "Woofer Up"
command_on: 'JgBQAAABIpMTEhITEhMSExITEhITNxI3EzcTNxI3EjgTNxI3EhMSExMSEhMSNxITEjgSExISEzcSNxI4ExISNxMSEjgTNxISEwAFGgABJ0oSAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABIpMTEhITEhMSExITEhITNxI3EzcTNxI3EjgTNxI3EhMSExMSEhMSNxITEjgSExISEzcSNxI4ExISNxMSEjgTNxISEwAFGgABJ0oSAA0FAAAAAAAAAAA='
and they are visible as switches in entities.
Thanks in advance for your help.
from generic-remote-control-card.
i cant understand this way what is the exact problem, what is the error? what works? what doesnt? what did u change?
from generic-remote-control-card.
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')"
from generic-remote-control-card.
ok so follow the logs, you probably missed something creating the new card
from generic-remote-control-card.
What screenshots or code/log samples i should post here in order for you to help me out?
- When installing the card from HACKS there is no configuration - you click install and it's done
- 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.
- In resources.yaml i added:
- url: /hacsfiles/generic-remote-control-card/generic-remote-control-card.js
type: module
That's pretty much it
from generic-remote-control-card.
closing as inactive
from generic-remote-control-card.
Related Issues (20)
- How to enable color buttons for LG remote HOT 1
- Help with editing Samsung remote HOT 1
- Help with getting started HOT 1
- Support for firestick control HOT 2
- card not visible - config check failed HOT 3
- Aesthetic adjustment to correctly display a samsung remote custom card HOT 4
- Nvidia Shield remote HOT 1
- Changing remote-html.js and the result is not showed HOT 2
- How do I send you my work? Apple Fire TV remote and Amazon Firestick remote HOT 3
- Samsung remote: image not rendered HOT 2
- Custom remote removed upgrade HOT 1
- Yeelight YLYK01YL remote
- issue with PartnerTV template
- issues with creating new remote HOT 1
- How to call a script instead of remote.send call HOT 2
- Apple TV remote HOT 2
- Contribution - A new remote for older LG TVs
- Infinite Scroll - Template issue HOT 1
- How can I make the Apple TV Remote transparent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generic-remote-control-card.