Hi There
I really need help here.
I have configured the RM Mini 3 correctly so far. It picks it up and I am able to learn remotes. However the code it learns is not usable. HA doesn’t like it.
Im using Ubuntu 16.04
Im not sure if there is a length limit??
Either way. I pull the remotes from the econtrol app using this https://github.com/NightRang3r/Broadlink-e-control-db-dump
This is my config file
- platform: broadlink
host: 10.1.1.137
mac: 'b4:43:0d:e4:14:b7'
switches:
tv:
friendly_name: "Main Tv"
command_on: 'JgAyAXI5Dg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8ODg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8qDw4ODg8ODw4ODg8ODw4ODg8qDw4PKg8qDysOKw8NDw4PKg8ODyoPKw4rDisPDg4rDgAJmHI5Dg4PKw4ODw4ODg8ODw4ODg8ODw4ODg8ODg4PKw4ODw4PDQ8ODw4ODg8ODw4ODg8rDg4PDg4ODw4PDQ8ODw4ODg8rDg4PKw4rDisPKg8ODg4PKw4ODysOKw4rDyoPDg4rDwAJl3I5Dw4OKw4PDg4PDg4ODw4PDg4ODw4ODg8ODw4OKw8ODg4PDg4ODw4PDg4ODw4ODw4rDg4PDg8ODg4PDg4ODw4PDg4rDg4PKw4rDyoPKg8ODw4OKw4PDisOKw8qDyoPDg8qDwANBQAAAAAAAA'
command_off: 'JgAyAXI5Dg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8ODg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8qDw4ODg8ODw4ODg8ODw4ODg8qDw4PKg8qDysOKw8NDw4PKg8ODyoPKw4rDisPDg4rDgAJmHI5Dg4PKw4ODw4ODg8ODw4ODg8ODw4ODg8ODg4PKw4ODw4PDQ8ODw4ODg8ODw4ODg8rDg4PDg4ODw4PDQ8ODw4ODg8rDg4PKw4rDisPKg8ODg4PKw4ODysOKw4rDyoPDg4rDwAJl3I5Dw4OKw4PDg4PDg4ODw4PDg4ODw4ODg8ODw4OKw8ODg4PDg4ODw4PDg4ODw4ODw4rDg4PDg8ODg4PDg4ODw4PDg4rDg4PKw4rDyoPKg8ODw4OKw4PDisOKw8qDyoPDg8qDwANBQAAAAAAAA'
This is my log file
reuben@hass:~/.homeassistant$ cat home-assistant.log
17-04-29 19:33:21 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File "/home/reuben/.local/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/reuben/.local/lib/python3.5/site-packages/homeassistant/components/switch/broadlink.py", line 137, in setup_platform
device_config.get(CONF_COMMAND_OFF)
File "/home/reuben/.local/lib/python3.5/site-packages/homeassistant/components/switch/broadlink.py", line 163, in __init__
self._command_on = b64decode(command_on) if command_on else None
File "/usr/lib/python3.5/base64.py", line 88, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
Now I would like to use this through IFTTT to turn on my tv using Google Home and Im not sure how to call that as well.
Im lost here and any help would be appreciated.