same here. i’m hoping RM Pro using 2 different code for on and off the switch. with different code at least we know the switch will be in state we wanted (on or off) without the switch state feedback feature in place.
the best is 2 codes AND the state feedback, AND integration in HASS (and, minor, dimming ability): I think that’s the ideal switch.
When I find it I will change the whole house
Now you made me confused…
I don’t have a TC2 do test here but,
Based on how to setup TC2 switches (from e-control), when tried to add a TC2 the red light stays ON, and it may be waiting a RF conde from TC2, so we can be sure it is RF, not WIFI.
Then we should consider RM-Pro is not always listening codes, what means the TC2 could not send it state when manually changed.
Does anyone disagree?
I got this from a developer here in Brazil:
He said he developed alone.
But I have no feedback to HA
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?
how will the hardware work??
the hardware is supposed to work just like you want, but nothing about broadlink stuff…
MQTT connected to HA through wifi network.
Status update
Manual switch sending status as well
If your wall switches are big enough to fit them, they are perfect…
I got a way to connect TC2 and you should test it:
https://github.com/mjg59/python-broadlink/issues/54#issuecomment-271367580
I was referrign to your phrase “I got a firmware which allows adding a manual wall switch”
What is a “manual switch”???
this?
Sorry… yes… you can connect a wall switch by soldering two wires on the main circuit os sonoff.
I have found here
Ok I will read it.
Will it work also on wall plugs (actually is where I want to put the sonoff)?
that thread is sooo complicated, can’t find a place with clear instructions
my broadlink rm2pro can learn ir signal but can’t learn rf signal. does anyone solve the problem?
i have increase to 3 seconds in the init.py file. but still no signal.
@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: '1wKEAxsMGR8JCxsLGx4HIAgeCAwbHQkeBw0bCxseCQocCxk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CxseCQocCxsLGwsAAVkPGA4aHwgLGwwZDRoMGwwaDBseCAsZDRwdCR4IHgkLGx4IHAsKHAsbHgkKHAsbCxoMAAFaDxkMGSAGDRsMGQ0ZDRsMGgwbHggLGwwZIAgeCR0JCxseCB4JCxsLGh8JCxsLGQ0bCwABGwQbBAUGCgoRFRAWIQYNGg0bCxkNGwwZDRkgCAwaDBseCB4JHQcNGx4IHgkLGgwbHgkLGwsbCxsLAAFoBAoLBC8EDQUEEAQMBAYRBQUPCQAF3AAAAAA=='
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
do you have two RM?
if not you must use just one switch instance…
like this:
switch:
platform: broadlink
host: 192.168.1.xxx
mac: 'b4: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MGwsZIAgMGwsZIAgeCR0JCxseCR0JCxwKHB0JCxsLHAsbCwABWg4YDhoeCAwbCxsMGgwaDBsLGh8JCxkNGSAJHQkdCgocHQkeCAscCxseCQocCxsLGwsAAVkPGA4aHwgLGwwZDRoMGwwaDBseCAsZDRwdCR4IHgkLGx4IHAsKHAsbHgkKHAsbCxoMAAFaDxkMGSAGDRsMGQ0ZDRsMGgwbHggLGwwZIAgeCR0JCxseCB4JCxsLGh8JCxsLGQ0bCwABGwQbBAUGCgoRFRAWIQYNGg0bCxkNGwwZDRkgCAwaDBseCB4JHQcNGx4IHgkLGgwbHgkLGwsbCxsLAAFoBAoLBC8EDQUEEAQMBAYRBQUPCQAF3AAAAAA=='
other_thing:
friendly_name: "name here"
command_on: 'KHAsbCxoMAAFaDxkMGSAGDRsMGQ0ZDRsMGgwbHggLGwwZIAgeCR0JCxseCB4JCxsLGh8JCxsLGQ0bCwABGwQbBAUGCgoRFRAWIQYNGg0bCxkNGwwZDRkgCAwaDBseCB4JHQcNGx4IHgkLGgwbHgkLGwsbCxsLAAFoBAoLBC8EDQUEEAQMBAYRBQUPCQAF3AAAAAA=='
command_off: '1wKEAxsMGR8JCxsLGx4HIAgeCAwbHQkeBw0bCxseCQocCxkNGwsAAUoQEBYPGCAIDBoMGwsbDBkNGwsbHgkLGwsZChwLGwsAAVsNGA4aHwgLGwwZDRsLGwsbDBkgCAsbDBkgCB4JHQkLGx4IHgkLGwsbHgkLGwsbCxoNAAFbDxYOGCAHDeCAsZD8JCxsLGQ0bCwABGwQbBAUGCgoRFRAWIQYNGg0bCxkNGwwZDRkgCAwaDBseCB4JHQcNGx4IHgkLGgwbHgkLGwsbCxsLAAFoBAoLBC8EDQUEEAQMBAYRBQUPCQAF3AAAAAA=='
just repeat the same package or erase the command_off entire line
The first way will result in a toggle switch, the second way will act just when turn the switch on…
@oliverdog it not working i mean to trigger broadlink with HA sometime it works sometime it dont. im i doing something wrong? here is the code
switch:
platform: broadlink
host: 192.168.1.xxx
mac: 'b4:xx:xx:xx:xx:xx'
timeout: 30
switches:
tv:
friendly_name: "Light One"
command_on: 'JgA4AAgEXAQtDxURHwsxBgwNCEoMEDwEHgRABRQEChAJEAkGDCkrBQ/CBwRlEA1/DgUIAAZNBRYIAA0F=='
command_off: 'JgA4AAgEXAQtDxURHwsxBgwNCEoMEDwEHgRABRQEChAJEAkGDCkrBQ/CBwRlEA1/DgUIAAZNBRYIAA0F=='
other_thing:
friendly_name: "Light Two"
command_on: '1wDJAQ8NChAXIQYMGg0aDBoMGgsbDRoeCAwaDBkfCh0JHQcMGx4IHggMGgwaDBwLGh8HDBwKAAEWBBgEHggRGQwaHggLGg0ZDhoLGwwaDBscCgocDBoeCR4IHQoIHR4JHQkLHAobDBsLGx0JHQkLAAEDBD4WDxcPGR8ICxsMGg0ZDBsLGwwaHgkLGwsbHggeCR0JCxseCR0JCxsLGwscChwdCRwKCwABJwQwDhgOGh8IDBsLGgwbCxoNGA4aHgkLGwsbHgkdByAICxseCB4JCxsLGwsbDBseCB0JCgABQgQFBA4RFw0YIAgLHAkdCxsLGQ0bDBofBwwbCxscCh4JHQkLGx0JHgkKHAocCxsLGx4JHQkLAAFZDgQWDRkfBwwbCxkNGwwaDBsLGx0JCxwKHB0JHQocCgocHQkdCQsbCxoMGwsdHAocCgoAAVkPGQwZHwgMGwsbDBsNGA0aDBoeCQobCxwdCR4JGwsKHRwKGwsJHQocCh0LGh0KCxoMAAFSBAcNFw8YHwkKHAwaDBoNGQ0ZDBkgCAodDBkdCh0JHQkKHRwJHgkMGgscDBoLGiAHDBoLAAGIBAcJGQQOBAsEBQQEDwYRBRwHCQQABdwaCxsNGh4IDBoMGR8KHQk=='
command_off: '1wDJAQ8NChAXIQYMGg0aDBoMGgsbDRoeCAwaDBkfCh0JHQcMGx4IHggMGgwaDBwLGh8HDBwKAAEWBBgEHggRGQwaHggLGg0ZDhoLGwwaDBscCgocDBoeCR4IHQoIHR4JHQkLHAobDBsLGx0JHQkLAAEDBD4WDxc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A0KBAkEBAkjDgQHBQ0VBAcHBRMIBgcHBAUQDQ4KCgQQGCAHDBsLHQkdCB4KHQkdGwsJHwcfGhAHBA0NFBIIHgwEChAJBwcOBiAHHwgeGwwHIAYfBwABYAocDBkdCwocCxsMGwscChwKHB0KCh0IHh0KHAocCwkcHAwaDAobCh4JHhsLCB4JHQkAAV0NGgwZHwoKHAocCxwKGg4bCR0eCAwaCxwdCR0LHAgMGx0LHAoKGwwbChweCgobChwLAAFdDRkMGSAJCxsLGg0bCxoNGwobHgoKHAscHQkcCxwKChwdCh0KCRwLGwsdHAkMGgscCwABSA0FDxQEERcfCQsaDB0KHAocCxoOGB8IDBoMHRwIHggeCwkdHQcfCggeChsMGh4JCxwLGgwAASIEJAQODxcQGR0JCxoMGwwaDRoLGw4YIAgLGwscHQgeCh0JCh0dCR0JCxwKHAsbHgoLGgodCwABRgQTDxcPFx8IDBsMGg0bCxsLHAwbHQgLGwsbIAceChwIDBsdCR0LChsLHQobHQsKGwsbCwABPA8LBBAZDhchBwwaDhgNGQ0bCxsMGh4JCxoMGx4KHgkfBQ0aHQscCwkeCB0KGx0LCRwLGwoAAW4EQggGBAoJDAQGBAcKBAQEBAQEDAAF3A=='
other_thing3:
friendly_name: "Socket one"
command_on: '1ww0ABsfCQwbDBsfCR4JHgoLHB4KHgoKHQsdCxwLHAwbHgoLAAFcDhoOGh8IDBsMHAwbDRsMHAwAAAAA=='
command_off: '1ww0ABsfCQwbDBsfCR4JHgoLHB4KHgoKHQsdCxwLHAwbHgoLAAFcDhoOGh8IDBsMHAwbDRsMHAwAAAAA=='
other_thing4:
friendly_name: "Light All"
command_on: 'JgAuAAYSCgwJCBAWChQMBA8KBxEjGxIKDxEJBwYJB2oFCQYqBwQPMQaSBgwHDAcADQUAAAAAAAAAAAAA=='
command_off: '1xM0ABweCR4JCxwLHB4JHgoLHAscCwABWQ8ZDxkgBw0bDBsMGwwbDBsNGx8JDBwMGx8JHgkeCQsAAAAA=='
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…