Eduardo
(Eduardo)
June 29, 2018, 8:04pm
1
Hello
I’m trying to add more than one switch based in the broadlink platform, but I don’t know why only the first one is appearing. I have tried many things and I have reviewed the code and I believe I haven’t done anything wrong… But I’ve been staring at it for more than an hour and I don’t really know what is what now…
Here is the code I have
- platform: broadlink
host: 172.26.0.132
mac: '78:0F:77:18:4A:CF'
switches:
panasonic_tv:
command_on: 'JgCEAw4ODQ4ODg4ODg4OKw4ODg4ODg4ODg4NDg4ODg4ODg4rDg4ODg4ODg4ODg0ODg4ODg4ODisOKw4qDisOKw4ODg4ODg4qDisOKw4rDioODg4rDgAJlHM4Dg4OKw0ODg4ODg4ODg4ODg4ODg4ODg4ODg4NKw4ODg4ODg4ODg4ODg4ODg4ODg4qDg4ODg4ODg4ODg4ODg4ODg4ODioOKw4rDisNKw4ODg4ODg4rDioOKw4rDisODg4qDgAJlHM4Dg4OKw4ODg4ODg0ODg4ODg4ODg4ODg4ODg4OKw4ODg0ODg4ODg4ODg4ODg4ODg4rDg4ODQ4ODg4ODg4ODg4ODg4ODisOKg4rDisOKw4NDg4ODg4rDisOKw4qDisODg4rDgAJk3M4Dw0OKw4ODg4ODg4ODg4ODg4ODg0ODg4ODg4OKw4ODg4ODg4ODg4ODQ4ODg4ODg4rDg4ODg4ODg4ODg4NDg4ODg4ODisOKw4qDisOKw4ODg4ODg4qDisOKw4rDioODg4rDgAJlHM4Dg4OKw0ODg4ODg4ODg4ODg4ODg4ODg4ODg4OKg4ODg4ODg4ODg4ODg4ODg4ODg4qDg4ODg4ODg4ODg4ODg4ODg4ODioOKw4rDisOKg4ODg4ODg4rDisNKw4rDisODg4qDgAJlHM4Dg4OKw4ODg4ODg4NDg4ODg4ODg4ODg4ODg4OKw4ODg0ODg4ODg4ODg4ODg4ODg4rDg4ODQ4ODg4ODg4ODg4ODg4ODisOKg4rDisOKw4NDw0ODg4rDisOKw4qDisODg4rDgAJk3M5Dg0OKw4ODg4ODg4ODg4ODg4ODg0PDQ4ODg4OKw4ODg4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0sDS0NLAwtDSwNDw0QDSwODw0PDQ8NEA0PDQ8NEA0PDg4NEA0PDg8MEA0PDg8MEA0PDg8NDw0PDg8NLA0QDC0MLQ0PDRAOKw4PDQ4OLA0sDRANDw0QDBANDw0QDBANDw0QDQ8NDw0QDRAMDw0QDSwNEA0sDQ8NDw4PDRAMDw4PDRANDg4PDRANDg4PDRANDw0PDRANDw0tDSwNDw0PDRANDw0PDRANDw4ODRANDw4sDisODg0PDg8NEAwPDg8NEA0ODg8NEA0PDQ8NEA0PDQ8NEA0PDS0NDg0QDRANDwwQDSwNLA4PDRANDg4PDRANDw0PDRANDw0PDRANDw0QDBANDw0QDC0MLQ4ODRANLA0sDiwNDw0ADQUAAAAAAAAAAA'
friendly_name: 'Calefacción'
Eduardo
(Eduardo)
June 29, 2018, 8:28pm
3
pnbruckner:
platform: broadlink host: 172.26.0.132 mac: ‘78:0F:77:18:4A:CF’ switches: panasonic_tv: command_on: ‘JgCEAw4ODQ4ODg4ODg4OKw4ODg4ODg4ODg4NDg4ODg4ODg4rDg4ODg4ODg4ODg0ODg4ODg4ODisOKw4qDisOKw4ODg4ODg4qDisOKw4rDioODg4rDgAJlHM4Dg4OKw0ODg4ODg4ODg4ODg4ODg4ODg4ODg4NKw4ODg4ODg4ODg4ODg4ODg4ODg4qDg4ODg4ODg4ODg4ODg4ODg4ODioOKw4rDisNKw4ODg4ODg4rDioOKw4rDisODg4qDgAJlHM4Dg4OKw4ODg4ODg0ODg4ODg4ODg4ODg4ODg4OKw4ODg0ODg4ODg4ODg4ODg4ODg4rDg4ODQ4ODg4ODg4ODg4ODg4ODisOKg4rDisOKw4NDg4ODg4rDisOKw4qDisODg4rDgAJk3M4Dw0OKw4ODg4ODg4ODg4ODg4ODg0ODg4ODg4OKw4ODg4ODg4ODg4ODQ4ODg4ODg4rDg4ODg4ODg4ODg4NDg4ODg4ODisOKw4qDisOKw4ODg4ODg4qDisOKw4rDioODg4rDgAJlHM4Dg4OKw0ODg4ODg4ODg4ODg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acción’
Nope. I already tried that, and the way I wrote it the switch.panasonic_tv appears. If I write it your way none of them show up.
Well, I don’t have any of these. I’m just going by what this says to do:
Are there no error messages anywhere that might help?
BTW, in your original post, you have two switches with the same name - the second and third are both named aire
. At a minimum you need to change that to make them unique so they get unique entity_id’s.
Eduardo
(Eduardo)
June 29, 2018, 9:12pm
5
Well, if I leave the second or third entry this error comes up
2018-06-29 23:06:44 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py", line 157, in setup_platform
device_config.get(CONF_COMMAND_OFF)
File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py", line 193, in __init__
self._command_on = b64decode(command_on) if command_on else None
File "/usr/lib/python3.6/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
But I don’t understand what’s the issue, as I have tried copy and paste from the first entry and changing the commands…
Sounds like your commands are incorrectly padded:
https://docs.python.org/3.5/library/base64.html?highlight=b64decode#base64.b64decode
Are all of your on & off commands a multiple of 3 characters in length? If not you need to add enough ‘=’ characters on the end to make their lengths a multiple of 3. (At least, that’s what I read.)
That’s probably because of the incorrect commands in the second and third switches. Once you get that resolved, you should probably change it to group them like I showed. But, that might not matter and may be more of a stylistic thing.
Eduardo
(Eduardo)
June 29, 2018, 9:35pm
8
Hmm… I haven’t checked that, only copied the command that threw the broadlink when reading the code from the remote. I’ll have to check that
You need create a “switch” for each device/overall commands. For example, for your “TV’s power”, you want to create a “tv_power” switch and below it, have a “command_on” and “command_off”.
Here is an example from my setup.
- platform: broadlink
host: !secret broadlink_pro_ip
mac: !secret broadlink_pro_mac
friendly_name: Broadlink Pro
switches:
sanyo_tv_power:
friendly_name: Sanyo TV Power
command_on: 'JgBQAAABJpQTExMSFBEUNRM2FDYSExQRFDUUNhM2ExIUERQRFTUUNRUQFDUTExMSEzYSExQRFBEUNhMSEzYUNRQSEzYTNhM3EgAFKAABKEgTAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABJpQTExMSFBEUNRM2FDYSExQRFDUUNhM2ExIUERQRFTUUNRUQFDUTExMSEzYSExQRFBEUNhMSEzYUNRQSEzYTNhM3EgAFKAABKEgTAA0FAAAAAAAAAAA='
This is under my “switches.yaml” file.
Eduardo
(Eduardo)
June 30, 2018, 7:58am
10
Solved. As you suggested, the issue was with the commands. I guess they weren’t read properly the first time and the padding was not right.
Thanks everyone