Broadlink RM-PRO and A1 sensor

Broadlink has it’s own automation system based on a learning IR and RF device. It works fine but very limited.
There is already a Bridge for Android that allows sending and learning codes using ip.

3 Likes

I got it working using the bridge on my spare android phone, but yeah built in support would be awesome

I do not think there is any open API to interact with the devices, that makes it difficult to include it in HA

and what about the A1 multi sensor? is it possible receiving data using the bridge?

and @Danielhiversen, I got the SDK from Broadlink! Is it enough?

The bridge only works for RM devices.They have an API(kind of) here
http://rm-bridge.fun2code.de/

I also used the bridge on another automation project I have, with a spare phone and it works.

I only recently found about home assistant and I’m trying to wrap my head how to use the bridge with home assistant.

can you elaborate please about how you made it work?

You can create an MQTT switch and push a msg to using the tasker plugin or the bridge.

Has anyone tried using an MQTT switch? wondering what the delay would be.

Also has anyone had any luck intergrating somfy RTS blinds into the Broadlink RM Pro? I can’t seem to find a straight answer for this anywhere.

For what it is worth I have been using the RM pro as well as some broadlink plug switches with this android bridge:

Although the app was written to be a tasker plugin, it also has the bridge capability (and there is some good documentation on how to use it via the http interface)

Have a look at this topic for an example of reading the temperature from the RM pro:

The API in the bridge allows for reading data from the A1 sensor (havent tried it yet) and the dev plans to support the S1 device in an upcoming update (I am looking forward to that one as I already have a bunch of sensors).

I have only been using it for a couple of weeks and haven’t had much issues with it so far (sometimes a little lag sending commands but that is the same lag as the official Broadlink software).

As for the price of the app - it is worth it in my opinion.

Hello community.

Here is converted version for python3.5 of broadlink-python api: http://pastebin.com/accU8VX4
Here is sample sensor for temperature on broadlink rm2 pro: http://pastebin.com/A8emAbPv

Sorry but I have no time now to develop switches and etc. If someone have interest to develop, fell free to use this code.

And sorry for my bad English!

1 Like

Does this need to Android app or is standalone?

No not need, its standalone. Perhaps next month I will have free time and If nobody not start develops components, I will do.

Link to original mdule: https://github.com/mjg59/python-broadlink
It’s use MIT license, but this code is for python2. I change code for Python3 see upper post.

Thanks… finally some great news…

Is there some dummies way for using RM2 and A1 on HASS?
How long until we get a full integration on HASS interface such as…

Example configuration.yaml entry

broadlink:

  • device: ‘RM2’
    host ip: 999.999.9.999
  • device: ‘A1’
    host ip: 999.999.9.999

Will it be possible???
Thanks

1 Like

This example is not possible but I think possible will be:

broadlink:

  • device: ‘RM2’
    host: 999.999.999.999
    mac: xx:xx:xx:xx:xx
    name: ‘TV On’
    ir_packet: ‘packet’

Ok, I’m almost done sensor component. Tomorrow I will upload it.

4 Likes

Awesome!!!

Here is sensor.

Please, test it.

Support only RM2 Pro (Read data from temperature sensor) and EAIR A1 (Temperature, Noise and etc.)

Next is switch for IR commands but there will be a problem because there is no push button in home assistant… Switch is not good idea for IR or RF remote commands

2 Likes

I will buy EAIR (I only hve RM2 pro).
At the moment I use the command below to activate Broadlink RM2 Pro RF command (on hardware electric swtiches) and works perfectly. I have still to test IR

switch:
  platform: command_line
  switches:
    platter11_light:
      command_on: "curl -X GET http://192.168.1.50:7474/?cmd=%7B%2...."
      command_off: "curl -X GET http://192.168.1.50:7474/?cmd=%7B%22...."

I don’t understand whats is wrong with code and why not passed tests in GITHUB. Wow.
I apologize but until now I did not use GitHub

Thanks very much for that…
Finally awesome!
Could not test yet because I am not home…

About the RF and IR sending capability… I think we could use a assumed_state switch. We could set two different commands for the same switch, such as POWER ON OFF, VOL UP DOWN, CHANNEL UP DOWN.

Besides, we do not need a graphical interface for remote controls, we just need integrate IR and RF commands on automation actions… we already have the e-control interface for that…which is very limited…

There is no need having a switch or a button on the UI, Just the possibility of turning the tv off if left on with nobody home… or turning the AC on a preset cold or hot based on the room temperature…

But need would like to abandon the Android bridge need…

but how to get status?