Problem with the Broadlink

Hey guys,
I’m trying to setup Hass.io with my Raspberry Pi 3 + the Broadlink RM Pro and want to start with turning on the lights.
I saw that I need to go to the Call Service and use a service called switch.broadlink_learn_command but unfortunately this doesn’t show up in the services. There is no single service mentioning the Broadlink.

My configuration.yaml contains this:

#Broadlink
switch:

  • platform: broadlink
    view: yes
    host: (put in the IP here)
    mac: ‘(put in the MAC here)’
    timeout: 15
    friendly_name: “Broadlink”

(it’s a “-”, not a dot. The board makes it a dot automatically
I saved it, tried to restart Home Assistant and the Raspberry Pi, but nothing show up.

Would be glad for any help!

anything in the log?

Have you taken a look at the setup docs?

Not sure why you have “view: yes” included.

It will likely help to specifiy the type of device you are using.

nothing in the log regarding the Broadlink

I followed the setup docs exactly, that’s why I’m wondering why it doesn’t show up.

not sure why you have “view:yes” included

saw it in another post and thought I’d try, but didn’t work. gonna delete it again

Oh and I’m using the BroadLink RM Pro+

Reset it to a clean Snapshot and now I got this in the log:

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 129, 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 80, in setup_platform
config.get(CONF_MAC).encode().replace(b’:‘, b’'))
binascii.Error: Odd-length string

here is my config for broadlink

- platform: broadlink
  host: ip address here
  mac: 'mac address here'
  timeout: 15

can you confirm the mac and ip details are correct?

Yes, the details are correct!

Take out the friendly name from the config.