HI. I’m struggling with Smartir but even if it seems simple but it doesn’t work. Let’s see if anyone can help me.
I installed via Hacs. I had already installed in the Broadlink integrations. I entered the reference in configuration.yaml. The device code is one of those already present. I have prepared a button with this yaml code. What I get is an error. Where is that wrong? Thanks for any help.
Error from log
File "/usr/src/homeassistant/homeassistant/components/broadlink/remote.py", line 232, in async_send_command
code_list = self._extract_codes(commands, subdevice)
File "/usr/src/homeassistant/homeassistant/components/broadlink/remote.py", line 157, in _extract_codes
raise ValueError(f"Command not found: {repr(cmd)}") from err
ValueError: Command not found: 'Channel 0'
lovalace
- type: custom:button-card
color_type: card
styles:
card:
- height: 60px
- width: 60px
tap_action:
action: call-service
service: remote.send_command
service_data:
entity_id: remote.r3mini
device: tv_samsung
command: Channel 0
In configuration.yaml
smartir:
update_branch: rc
media_player:
- platform: smartir
name: TV Samsung
unique_id: tv_samsung
device_code: 1060
controller_data: remote.r3mini
in code of smartir
{
"manufacturer": "Samsung",
"supportedModels": [
"UE40F6500",
"UE40H7000SL"
],
"supportedController": "Broadlink",
"commandsEncoding": "Base64",
"commands": {
"off": "JgBGAJOVEDoQOhA6DxYPFhAVEBUQFRA6ETkROREUERQRFBEUEBUQFREUERQRORE5EBUQFRE5ETkRORE5ERUQFRA6DzsPFhAADQUAAA==",
"on": "JgBGAJKVETkRORA6ERQRFBEUERQRFBE5ETkQOhAVEBUQFREUEBUQOhEUERQRORE5EBURFBA6EBUQOhE5EBUQFRA6EDoRFBEADQUAAA==",
"previousChannel": "JgBGAJKVEDoQOhA6ERQQFg8WDxYQFQ87EDoQOg8WDxcOFw8VDxcOFg8XDhYRFQ47EBUPFg8WDzsPPA87EDkRFBE5EjgQOhAADQUAAA==",
"nextChannel": "JgBGAJKVEDkROhE4EBUQFg4XDBkPFw86DzsQOg8WERQPFhAVEBUQFRA5ERUPFhA6DxYQFQ8WDzoRFQ87EDoRFBA5EToQOg8ADQUAAA==",
"volumeDown": "JgBGAJKVEDoSOBE5EBUQFREUERQRFBA6EDoROREUEBURFBEUEBUQOhE5ERQROREUEBURFBAVEBUQFRE5ERQQOhE5EDoQOhAADQUAAA==",
"volumeUp": "JgBGAJKVETkRORA6ERQRFBAVEBUQFRA7EDkROhAUERUQFRAUEBYQOhA6EDoPFhAVEBUQFQ8WEBUPFhAVEDoQOhA6EDoQOg8ADQUAAA==",
"mute": "JgBGAJGWEDoQOhA6EBUQFREUEBURFBA6ETkRORITERQRFBEUEBURORE5ETkROREUERQTEhEUEBYPFhAVEBUQOg87EDoQOg8ADQUAAA==",
"sources": {
"Channel 0":
................