BroadLink MP1, MP2 controlled switches support

@kahthan I think you should open a pull request here: https://github.com/home-assistant/home-assistant/pulls Then you will be able to send your code directly

It came the sc1? _

Please add the sc1

Hello. Just to make sure im doing it right, to make MP2 work, i should add it as SP2? Correct?

Thanks!

Hi, guys!
Some lazy users can use my fork based on posts above. Note: its only temporary solution.
installation:
1.
$ pip3 install git+https://github.com/jazzina/home-assistant.git@mp1-support -U
in your hass virtualenv
I think will be better to use latest fork of python-broadlink for it (optional)
$ pip install git+https://github.com/jazzina/python-broadlink -U
2.
add to config to switch topic lines described here: BroadLink MP1, MP2 controlled switches support
3. restart hass

Once more: its temporary solution until code will be ready to make quality pull request

2 Likes

I cleaned above code and created a PR here: https://github.com/home-assistant/home-assistant/pull/9222 to add support for MP1 switch
@Danielhiversen, could u please review it and advise me what should I do to merge it. This is my first time making PR into HomeAssistant.
Thanks,

1 Like

I can do that when the tests pass

the sc1 now is integrated?

I ordered one long ago, and today arrived

Thanks @Danielhiversen

That’s what I’m hanging out for! They’d fill a major piece of my HA jigsaw, virtually Sonoff price without the hoops.

When I wasn’t interested, I’m sure I saw someone had got them to work by putting a different product in the profile but can’t find it now I actually want some!

really? Ohh cool, if you remember please post it.

EDIT is nice object, a pity little too big to put inside the regular wall sockets. And very difficult to open, they put sort of proprietary screws, which is absurd, I need to open it to put my cabling inside …

Will do but I’m hopeful they will be included soon, I saw OpenHab have them listed now.

I was looking at binning the case altogether for a few of them when mounting inside the plaster box, is what’s left still large?

have no idea since I was not able to open it. I may just do that (destroying it) and see if it fits

I saw a picture of the inside online, but now I do not find anymore

Hi giangvo,

I installed your PR as a custom component.
It works very well and looks great!
Thank you so much~~

It’s a typical shitty engineered Chinese product: not good for inside (too big and need to reset pushing a button) not good for the outside (ugly)

Hows the commit going for this change? Just wondering as I’m using hass.io and cannot update the scrip manually.

It’s still under review. It takes quite a lot of time to review back and forth. Will try to push it out soon :slight_smile:

1 Like

Thanks. On a another note, has anyone pulled the mp1 apart and removed the covers that stop 2 pin AU plugs from being plugged in.

I merged the PR so it should be released in new version soon :). Cheers!

2 Likes

Hi,

This product is compatible wiyh HA: