I tried creating a remote for my Nvidia Shield. I used the Mibox as a template. Aside from the remote not showing up in HA, the icons for the remote don't look like the actual remote buttons. It looks like they've been cut off. Here is some code - I know I'm missing code for some buttons. I'm a noob at this so I'm learning as I go along.
Hi there
I tried creating a remote for my Nvidia Shield. I used the Mibox as a template. Aside from the remote not showing up in HA, the icons for the remote don't look like the actual remote buttons. It looks like they've been cut off. Here is some code - I know I'm missing code for some buttons. I'm a noob at this so I'm learning as I go along.
function getRemoteStyle_nvidia_shield(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: 224px; margin: 0 auto }
remote-control-nvidia_shield {
}
remote-control-nvidia_shield h2,
remote-control-nvidia_shield span {
}
remote-control-nvidia_shield ul {
}
power a,
volumeup a,
volumedown a,
clickleft a,
clickright a,
mute a,
microphone a,
info a,
home a,
back a,
top a,
bottom a,
ok a {
}
remote-control-nvidia_shield li#power a {
}
remote-control-nvidia_shield li#power a:hover {
}
remote-control-nvidia_shield li#microphone a {
}
remote-control-nvidia_shield li#microphone a:hover {
}
remote-control-nvidia_shield li#volumeup a {
}
remote-control-nvidia_shield li#volumeup a:hover {
}
remote-control-nvidia_shield li#volumedown a {
}
remote-control-nvidia_shield li#volumedown a:hover {
}
remote-control-nvidia_shield li#clickleft a {
}
remote-control-nvidia_shield li#clickleft a:hover {
}
remote-control-nvidia_shield li#clickright a {
}
remote-control-nvidia_shield li#clickright a:hover {
}
remote-control-nvidia_shield li#source a:hover {
}
remote-control-nvidia_shield li#home a {
}
remote-control-nvidia_shield li#back a {
}
remote-control-nvidia_shield li#right a {
}
remote-control-nvidia_shield li#top a {
}
remote-control-nvidia_shield li#bottom a {
}
remote-control-nvidia_shield li#ok a {
}
remote-control-nvidia_shield li#home a:hover {
}
remote-control-nvidia_shield li#back a:hover {
}
remote-control-nvidia_shield li#top a:hover {
}
remote-control-nvidia_shield li#bottom a:hover {
}
remote-control-nvidia_shield li#ok a:hover {
}
`; }
function getRemoteHtml_nvidia_shield(config){ const template = config.remote_template; return `
${config.name}
Main navigation
`; }