The other way is using a SONOFF with MQTT firmware.
I ordered mine and as soon I get it, I will change the firmware. I got a firmware which allows adding a manual wall switch. But will it fit inside wall switches?
@Danielhiversen@masterkenobi@oliverdog hello i can learn rf and ir command but when i add a switch i get below error in log file this is my config set up. please help me.
switch:
platform: broadlink
host: 192.168.1.xxx
mac: 'b4:xx:xx:xx:xx:xx'
switches:
reciever:
command_on: 'switch_packet on'
command_off: 'switch_packet off'
switch 2:
platform: broadlink
host: 192.168.1.xxx
mac: 'b4:xx:xx:xx:xx:xx'
timeout: 115
# Will work on most Phillips tvs:
tv:
friendly_name: "Phillips Tv"
command_on: '1wKEAxsMGR8JCxsLGx4HIAgeCAwbHQkeBw0bCxseCQocCxkNGwsAAUoQEBYPGCAIDBoMGwsbDBkNGwsbHgkLGwsZIAcfCR4ICxseCR0JCxwLGR8JCxwLGwsZDQABWQ8YDhggCQwaDBkNGQ0bCxoNGx4ICxsMGx4IHgkdCQsbHQkeCQsZDRseCQsbCxsLGwsAAVoQFw8XIAgMGwsbCxsLHAsZDRseCAsbDBscCR8JHggLGx4JHQkLHAocHQoIHQscCxoMAAFZDxgOGCEICxkOGgwZDRsMGgwZIAgLGwwbHggeCR0JCxseCR0JCxsLHB0JCxsLGwwaDAABWg4YDhggCAwbCxoNGwsZDRsLGx4JCxkOGh4JHQkeCAwZIAgeCQocCxseCQocCxsLGwsAAVcEDxcOGCEHDBsMGQ0bCxkOGgwZIAgLGwwZIAgeCB4JCxseBx8JCxsLHB0JCxsLGwwaCwABWg8XDxoeCAwbCxsMGgwbCxsLGh8JCxsLGx4JHQkeCAscHQkdCgocChwdCAwcChwLGwsAAVsNGA4aHwgLGwwZDRsLGwsbDBkgCAsbDBkgCB4JHQkLGx4IHgkLGwsbHgkLGwsbCxoNAAFbDxYOGCAHDRsLGQ0bDBkNGwsbHgkLGwsbHggeByAICxofCR0JCxwKHB0JCxwKHAsaDAABWRAWDxoeCAwZDRsMGQ0ZDRsMGR8JCxsLGx4JHQkeCAwbHQcgCA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CAsbDBkgCB4JHQkLGx4IHgkLGwsbHgkLGwsbCxoNAAFbDxYOGCAHDRsLGQ0bDBkNGwsbHgkLGwsbHggeByAICxofCR0JCxwKHB0JCxwKHAsaDAABWRAWDxoeCAwZDRsMGQ0ZDRsMGR8JCxsLGx4JHQkeCAwbHQcgCAscCxseCAscCxsLGQ0AAVoOGA8YIAgLGwwaDBsLGwsaDRofCAsbDBsdCR4IHgkLGx4JHQkLGwsbHgkLGwsbCxsLAAFaDxgPGB8IDBoMGwsZDhoMGwsZIAgMGwsZIAgeCR0JCxseCR0JCxwKHB0JCxsLHAsbCwABWg4YDhoeCAwbCxsMGgwaDBsLGh8JCxkNGSAJHQkdCgocHQkeCAscCxseCQocCxsLGwsAAVkPGA4aHwgLGwwZDRoMGwwaDBseCAsZDRwdCR4IHgkLGx4IHAsKHAsbHgkKHAsbCxoMAAFaDxkMGSAGDRsMGQ0ZDRsMGgwbHggLGwwZIAgeCR0JCxseCB4JCxsLGh8JCxsLGQ0bCwABGwQbBAUGCgoRFRAWIQYNGg0bCxkNGwwZDRkgCAwaDBseCB4JHQcNGx4IHgkLGgwbHgkLGwsbCxsLAAFoBAoLBC8EDQUEEAQMBAYRBQUPCQAF3AAAAAA=='
17-01-19 19:18:49 homeassistant.loader: Unable to find component mediaplayer
17-01-19 19:18:50 homeassistant.components.switch: Error while setting up platform broadlink
Traceback (most recent call last):
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\helpers\entity_component.py”, line 150, in _async_setup_platform
entity_platform.add_entities, discovery_info
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py”, line 361, in iter
yield self # This tells Task to wait for completion.
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py”, line 296, in _wakeup
future.result()
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py”, line 274, in result
raise self._exception
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\concurrent\futures\thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\switch\broadlink.py”, line 99, in setup_platform
broadlink_device
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\switch\broadlink.py”, line 113, in init
self._command_on = b64decode(command_on) if command_on else None
File “C:\Users\Ashfaq\AppData\Local\Programs\Python\Python35\lib\base64.py”, line 88, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
I have some problem like that you said with long codes… try learn again and again and see if you get a shorter code once in a while… and use just the short codes…