Broadlink Integration - add support for RM4 Mini

Coming 29th April… Or the 30th for us Aussies…

I have tested with 109-b02 but doesn’t work.

How can you test the 109-b02 ?

It’s a docker for Linux/arm in official docker hub.

https://hub.docker.com/r/homeassistant/armhf-homeassistant/tags

Where did you find the example 2 for Rm4c?

I followed instructions: factory reset and not cluod. It runs!
Home Assistant 0.109.0b3

Great !!
Waiting for the formal release.

So no doubt I am missing something (probably knowledge) but

  • installed 0.109.0b4
  • reset my rm4 pro (unsure what’s holding for 10sec to pair is vs factory reset
  • added back with BroadLink app the (although assume this would have joined it to the cloud).
  • Added details to the config yaml
    But I get the following error in HA logs

Logger: homeassistant.components.remote
Source: helpers/entity_platform.py:202
Integration: Remote First occurred: 6:49:06 AM (11 occurrences)
Last logged: 7:14:16 AM

  • Platform broadlink not ready yet. Retrying in 60 seconds.

Any thoughts and advice on factory reset and adding back to network but not cloud?

For what it’s worth, I added mine back to my network using python-broadlink, leaving the Broadlink app out of it completely.

import broadlink

broadlink.setup('myssid', 'mynetworkpass', 3)

I then used debug.py which is linked somewhere in this topic: Add support to the new Broadlink RM Mini 3 and RM4 Series to prove local communication worked.

Thanks @zoogara, sounds like I need to get some knowledge around how to use python then :slight_smile: … Its a worry when you spend most of your life in a windows GUI world and then jump headfirst into this stuff :slight_smile: (although we are catching up now we have powershell)

I’ll do some research down that line.

Does 109.0 integrate RM4 on the Broadlink platform?

Yes. I am having some issues, but if you follow the instructions to remove your RM4 from the cloud, in the thread linked above, I can vouch for remote.learn and remote.send services working with RM4.

I cannot get broadlink.send to work, so depends on how you want to control it.

I deleted the device from the app and cannot reconnect it now. :confused:

Depending on the device, you can either connect it to the network using the older Broadlink app, or using python-broadlink, or using the AP mode (see the doco for the remote).

The python-broadlink method is pretty simple, see a couple of posts above. That’s the method I used, but if you are not confident running Python then the AP mode is probably your best bet.

@Virtual-Nomad - I also remembered - I believe you can use AP mode (access point mode) on the Broadlink remote to connect to your wifi without using an app. It is covered in the documentation for your device.

I’ve just installed HA 0.109.1 on HASSIO
Still can’t get my RM4C mini working with HA

I’ve tried to configure the RM4C mini with AP and python-broadlink as well but none worked for me
I suppose I’m missing some steps and I’m confused where I’m wrong

this is my configuration flow:
a) python-broadlink:

  • reset the remote twice until blinking slowly (3 blue link , pause, 3 blue link, etc…)

  • connect to the RM4C mini wifi

  • run form win10 power shell:
    pip install broadlink
    python.exe
    import broadlink
    broadlink.setup(‘myssid’, ‘mynetworkpass’, 3)

             no errors returned buy the python setup command but the remote still blinking slowly
    
  • connect to myssid wifi

  • run from python
    import broadlink
    devices = broadlink.discover(timeout=5)
    no response from the remote

without any response from the device with the python library I then configured the RM4C mini with the Broadlink app using AP Mode configuration
The RM4C is now in my lan

I’ve read somewhere that using the Broadlink app to activate the remote will block HA from working with the remote, but I had no othe choice at the moment.

then:

  • confgured HA configuration.yaml with:
    remote:
    • platform: broadlink
      name: Broad2
      host: 192.168.xxx.xxx
      mac: xx:xx:xx:xx:xx:xx
      type: rm4c_mini

but I can’t find any entity “Broad2” for the remote in HA after reboot

  • tried even HA configuration.yaml with:
    switch:
    • platform: broadlink
      host: 192.168.xxx.xxx
      mac: ‘xx:xx:xx:xx:xx:xx’
      timeout: 30
      friendly_name: “Broad2”
      type: rm4c_mini

no new entity either
If I then run from developer\services:
broadlink.learn with the remote IP and sending some IR signals toward the RM4C I get:
Broadlink switch
No signal was received

I’ve no other idea on how to configure the remote and get it working with HA.

Many thanks in advance if some of you guys can understand my mistakes.
regards,

I’ve just managed to get my RM4 mini (not c) working, with no app.
When you ran broadlink.setup(‘myssid’, ‘mynetworkpass’, 3) was it in AP Mode. i.e. 5 rapid blinks and a pause, then 5 again?

Thanks Mark.
When I run broadlink.setup(‘myssid’, ‘mynetworkpass’, 3) the remote had 4 blinks, pause then 4 again.
I don’t receive any retunr error.
After broadlink.setup command the remote is still blinking 4, pause and then 4 blinks again.

Is there any way to test if the remote has received the broadlink.setup command?

thanks a lot

That sounds right.
Mine just stopped flashing. I then checked my router and it was online.

I’m assuming you changed these to your settings

broadlink.setup(‘myssid’, ‘mynetworkpass’, 3)

It was 3 for me as my router is on WEP2

Mark,
“myssid” is setup to WPA2/PSK
according to the documentation should be fine:
Security mode options are (0 = none, 1 = WEP, 2 = WPA1, 3 = WPA2, 4 = WPA1/2)