Broadlink devices

Hi,
there are new Broadlink devices to add to core configuration.
Please add to init.py file also:

0x6111: (sp4, "MCB1", "Broadlink"),
0xa56a: (sp4, "MCB1", "Broadlink"),
0x756f: (sp4, "MCB1", "Broadlink"),
0x618b: (sp4b, "SP4L-EU", "Broadlink"),
0x6113: (sp4b, "SCB1E", "Broadlink"),

They have been tested successfully.

Thanks,
Paolo

Hi Paolo. Thank you very much! Are you sure that 0x6111 is a sp4 and not sp4b? I am asking for confirmation because of the PID, which seems to be in a different range, but I don’t doubt it, I just want to make sure everything will be ok when I add it.

Hi Felipe,
you are right, I made a typing error.
I added the devices in my configuration but when I made the post I lost a “b”.

Thanks for double-checking!

1 Like

Thank you!

Hi,

Can I just check if it is possible for us to manually add the items below into hass.io?

  • 0x6111: (sp4b, “MCB1”, “Broadlink”),
  • 0xa56a: (sp4, “MCB1”, “Broadlink”),
  • 0x756f: (sp4, “MCB1”, “Broadlink”),
  • 0x618b: (sp4b, “SP4L-EU”, “Broadlink”),
  • 0x6113: (sp4b, “SCB1E”, “Broadlink”),

Also,
Do you think it is possible to add MSK1 to the core configuration?

9ed61610aee1bc13a086cdc502c97ee5

You have to connect to your Home Assistant console (with ssh, eventually).
In the console write:
docker exec -it homeassistant /bin/bash

Inside docker write:
bash-5.0# vi /usr/local/lib/python3.8/site-packages/broadlink/init.py

Insert the lines with the new devices, save the file and exit.

Then reboot your HA.

Hi,

Noted with thanks. I will try it out later.

Hi,

Can i just ask how can we find out the device id (eg.0x6111) from the device itself and if the device is sp4b or sp4?

  • 0x6111: (sp4b, “MCB1”, “Broadlink”),
  • 0xa56a: (sp4, “MCB1”, “Broadlink”),
  • 0x756f: (sp4, “MCB1”, “Broadlink”),

Hi,

where will /usr/local/lib/python3.8/site-packages/broadlink/ init .py be located if it is a Home Assistant Operating System installation?

Thank you

The file is in the docker, the first command I wrote.
To discover the code devices you should analyze the network traffic data with a tool. It is easiest to put all the codes in the “init.py” and after HA reboot the devices are available.

Hey,

I just wanted to hop in with few tutorial steps to help you as, I have tinkered with this for quite some time and finally managed to get it working.

First get ssh to you home assistant command line (CLI) by installing “SSH & Web Terminal” add-on from supervisor and disable the last option “Protection mode” (without disabling protection mode you won’t be able to access docker!)
Next, in command line input first:
docker exec -it homeassistant /bin/bash
Docker will start (with bash-5.0#) and inside input:
vi /usr/local/lib/python3.8/site-packages/broadlink/__init__.py (here it is important to edit file __init__.py with two underscores before and after init).
vi text edit will open and go down (with up/down keyboard arrows) to Supported devices and start typing somewhere around “sp4” device. You need to get a hang on typing in vi if you havent already, try if enter (new line) works etc. The insert lines: (no need to find any device id and as far as I know these numbers are just something to get device recognized and associated with already supported wifi switches)

0x6111: (sp4b, “MCB1”, “Broadlink”),
0xa56a: (sp4, “MCB1”, “Broadlink”),
0x756f: (sp4, “MCB1”, “Broadlink”),
0x618b: (sp4b, “SP4L-EU”, “Broadlink”),
0x6113: (sp4b, “SCB1E”, “Broadlink”),

Then press ESC (to exit editing mode and start command mode) and then while still in vi type:
:wq (which stands for :(execute) write (or save file) quit (to exit vi) )
Then you can go to Configuration/Server controls and first check if your configuration is valid (this is not necesarry but it is good practice to always check it!) and then restart home assistant. By this moment I hope you have already connected MCB1 to your home network and know the IP address of the device and if so, then go to Integration/+ Add integration and search for Broadlink and use device ip adress as a host ( I don’t know what does timeout means though).

I hope this will help you, cheers!