The card yaml is based on the firesticktv remote, as is the js, and I have implemented the firestick successfully in a card just to ensure I can confirm that the basic setup works, and it does. It is just my cut down version that is not right.
type: custom:generic-remote-control-card name: Ollny Remote remote_template: ollnyremote buttons: 'on': call: script.ollny_button data: button_pressed: '{{ input_text.ollny_on_text }}'
The ollnyremote.png and on.png file sizes match the settings in the js file but its still looks wrong in the dashboard.
I realise it will be my issue but need help to understand what I have done wrong.
was a typo in the code I posted (accidentally created after previous failed tests) but I realised I had a cache issue so set chrme up to ignore cache and also cleared HA companion app cache.
Attempting to create a new Ollny lights remote.
I have simplified the setup to one button until I can get it working. JS is:
function getRemoteStyle_ollnyremote(config) { const template = config.remote_template; const base_url =
/hacsfiles/generic-remote-control-card/remotes/${template}`;return ` ha-card{ background-color:transparent; box-shadow:var(--paper-material-elevation-0_-_box-shadow); } body { margin: 0; padding: 20px; font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif }
.container { width: 360px; margin: 0 auto }
remote-control-ollnyremote {
}
remote-control-ollnyremote h2,
remote-control-ollnyremote span {
}
remote-control-ollnyremote ul {
}
on a {
}
remote-control-ollnyremote li#on a {
}
remote-control-ollnyremote li#on a:hover {
}
`; }
function getRemoteHtml_ollnyremote(config){ const template = config.remote_template; return `
${config.name}
Main navigation
; }
The card yaml is based on the firesticktv remote, as is the js, and I have implemented the firestick successfully in a card just to ensure I can confirm that the basic setup works, and it does. It is just my cut down version that is not right.
type: custom:generic-remote-control-card name: Ollny Remote remote_template: ollnyremote buttons: 'on': call: script.ollny_button data: button_pressed: '{{ input_text.ollny_on_text }}'
The ollnyremote.png and on.png file sizes match the settings in the js file but its still looks wrong in the dashboard.I realise it will be my issue but need help to understand what I have done wrong.