Broadlink setup issues

Having problem setting up the Broadlink RM PRO+ (IR + RF) (http://www.ibroadlink.com/rmPro+/)

Error while setting up platform broadlink
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py”, line 157, in setup_platform
device_config.get(CONF_COMMAND_OFF)
File “/usr/local/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/local/lib/python3.6/base64.py”, line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

  - platform: broadlink
    type: 'rm2_pro_plus2'
    host: ip.to.broadlink.rm_pro
    mac: 'yy:yy:yy:yy:yy:yy'
    switches:
      topbox:
        friendly_name: 'TV Box'
        command_on: 'AAAAbQAiAAIBVQCrABUAQAAVAEAAFQBAABUAQAAVABUAFQAVABUAFQAVABUAFQAVABUAQAAVAEAAFQAVABUAFQAVABUAFQAVABUAQAAVABUAFQBAABUAFQAVABUAFQBAABUAFQAVABUAFQAVABUAQAAVABUAFQBAABUAQAAVABUAFQBAABUAQAAVAEAAFQYmAVUAVQAVDks'

From the looks of the source of broadlink.py, it really wants you to define both command_on and command_off. From the snippet you’ve posted it looks like you’ve only provided the former.

I finally got it working and seems like the Arris topbox are hard to define in switch but works as script.