Universal Remote Card - Buttons, Touchpads, Sliders, and Keyboards for Multiple Platforms

Version 4.8.0 has been released! This release adds Denon AVR as a default platform, and adds keyboard support to Samsung TV (using the SamsungTV Smart Component custom integration).

1 Like

Hi, thank you for the integration, it works very well.
I added a custom button to turn on my Samsung tv from magic packet and it’s working good.
Now, i am trying to change the icon of my custom button depending of the state if my TV (if switch on/off).
For the test, i added a test button rathet than TV state.
But the code is not correct.
Can you help me please ?

custom_actions:
  - type: button
    name: power2
icon: >-
	{% if input_boolean.test == 'on' %}
		mdi:power-on
	{% else %} 
		mdi:power-off
	{% endif %}

Thank you !

The templating system of this card uses the same rules and syntax as Home Assistant’s backend templating system with few exceptions. You have to use the is_state function. You can also do this in one line.

icon: mdi:power-{{ "on" if is_state(config.media_player_id, "on") else "off" }}

Working good !
Thank you :slight_smile:

I installed the universal remote card, but some of the buttons are not working. I am using a Homatics Box R 4K Plus. What are my options?

The Android TV default keys list uses the lists provided by the Python library that Home Assistant uses for the Android TV integration. Not all keys are guaranteed to work with all Android TVs, if at all.

You can try calling the commands with the ADB integration instead, or using a smart IR remote.

How would I add custom buttons for s0oundtv and paramount+ (UK - the .ca version)?

1 Like

Version 4.9.0 adds Yamaha YNCA as a default platform. It also makes other small tweaks like calling search on enter for the search dialog, and changing the max source icon to an HBO Max icon.

Thanks for your work,
I think it’s really well done, and the ability to customize things makes me really happy :slightly_smiling_face:
I have a problem, it’s definitely my fault, but I hope I can solve it by asking you experts.
I successfully configured everything with a Samsung TV and SamsungTV Smart Component custom integration.
The source buttons like Netflix and Amazon Prime Video work great, but I can’t switch back to normal TV with just one button.
I’ve tried all the buttons listed (TV, Antenna, etc.) but nothing happens. Maybe it’s a problem with my TV? The other buttons work, though :slightly_frowning_face:
The only way to switch back to TV when I’m on Netflix or Prime is to use the sequence: ā€œsourceā€ button and then the ā€œcenterā€ button.
If I can’t get a ā€œTVā€ button to work, can I create a custom button that simulates, like a macro, pressing these two buttons consecutively?

Thanks again,
I hope I can fix this. In the meantime, I’m having a blast customizing the interface with colors and backgrounds.
Really great work.

SOLVED:
I made a script in Home Assistant using the SamsungTV Smart Component remote and creating the button sequence I needed.
Then, in the remote control I created, I added a custom interaction to the button, which calls the script I just created.

The remote card is great but I cannot get power on to work. Have also tried to set up the TV using the Wake on LAN integration but that doesn’t resolve it.

However if I go to the Device in Home Assistant I can power on from there so it doesn’t appear to be a network or device configuration issue.

Any ideas as to how it can be resolved?

I’ve been building a remote using the generic remote template as I’m building a controller for multiple remotes.

Overnight most of the default keys have disappeared. The code is still there, it just isn’t pulling icons into the layout eg rewind.

My HA image updated yesterday so I don’t know if that’s the issue. I’m not very experienced so the chance of human error is pretty high but if anyone can help me out it would be appreciated

My bad, I broke the generic remote platform. Fixed in version 4.9.2.

1 Like