PLUGIN: Broadlink RM Interface

That’s what a Mexican soap opera says … there’s no end to it.

Any chance to add support for SP modules ?
Or to explain how this can be done?

[quote=“cybrmage, post:57, topic:197515”]Actually… You DID state that it was not working…

What do you mean tommorrow??? You’re in Oz… It is Tommorrow…[/quote]

Actually Today now.
Next problem/question.
Is there a new device that should be created when the IP address of e-Control is added?,
No log supplied as I have no idea what to expect other than I see no way to control the device.

You are going to ask for the log.
Adding the IP Address has no effect and doesn’t retrieve e-Control codes

08 11/15/17 14:39:41.773 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=477 <0x73202520>
08 11/15/17 14:39:41.773 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Broadlink1 <0x73202520>
08 11/15/17 14:39:41.774 JobHandler_LuaUPnP::HandleActionRequest argument eControl_ip=192.168.0.22 <0x73202520>
02 11/15/17 14:39:41.775 luup_log:477: (BroadLink::UPNP::AddEcontrol) Called. <0x73202520>
01 11/15/17 14:39:41.775 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd1 [wget “http://192.168.0.22:48815” -O /etc/cmh-ludl/eControl-data.zip]. <0x73202520>
01 11/15/17 14:39:41.776 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd2 [unzip /etc/cmh-ludl/eControl-data.zip -d /etc/cmh-ludl/]. <0x73202520>
01 11/15/17 14:39:41.776 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd3 [rm -rf /etc/cmh-ludl/SharedData; rm -f /etc/cmh-ludl/eControl-data.zip]. <0x73202520>
01 11/15/17 14:39:41.800 luup_log:477: (BroadLink::UPNP::AddEcontrol) Error - No e-Control data retrieved. <0x73202520>
01 11/15/17 14:39:41.826 LuaInterface::CallFunction_Job2 device 477 function SBroadlink_Broadlink1_AddEcontrol_run failed (null) with return false <0x73202520>
02 11/15/17 14:39:41.827 JobHandler_LuaUPnP::RunAction device 477 action urn:micasaverde-com:serviceId:Broadlink1/AddEcontrol failed with 501/Action failed <0x73202520>

Guys. I tried something that actually solved the device detection problems. I just uninstalled the plugin , changed the browser to explorer (edge) , and that?s it. Response of the plugin was immediately different. Devices detected. When trying to select a device there were problems again so I changed back to chrome. Bam… worked again. Codes were transferred as well. Slowly slowly it is starting to work. Codes are now working . This worked for me . Good luck for those who faced the same issue.

Sent from my iPhone using Tapatalk

No. The SP modules do not have IR/RF capabilities

Use the correct plugin → HERE.

Nope. Logs not needed (but did confirm)…

You did not follow the instructions (given in the first post in the thread), and the plugin could not retrieve the e-Control data.

Not the latest version. Latest version is always listed in the first post of the thread.

Not an upgrade… actually a downgrade…

Still not an upgrade…

Did you read the instructions (in the first post of the thread)??? No. The “ip” parameter in the advanced tab is not used. Follow the instructions to select the device.

The Vera UI web interface has been horribly broken for the past 4 or 5 firmware releases… As I (and others) have said, If it doesn’t work, try a different browser.

I take ABSOLUTELY no responsibility for recurrent issue with the MIOS firmware.

That being said, I do most of the development and testing of my plugin using Firefox. It has been stable and working despite issues with other browsers.

[font=verdana]Import IR/RF codes or Devices from e-Control[/font]
[font=verdana]==============================[/font]

[font=verdana] 1) Determine the IP Address of the IOS/Android device running e-Control. Check[/font]
[font=verdana] 2) have the e-Control application running and select the “more functions” page (stacked bars icon in upper left corner of the “Control” page Check[/font]
[font=verdana] 3) Select “share”, then select “Share to other phones in WLAN” Check[/font]
[font=verdana] 4) On the plugin code management page, in the “Add code from network connected device running e-Control.” box, enter the IP address of the phone and click “Add” Check After eControl says it has compressed files.[/font]
[font=verdana]Processing eControl Data[/font]
[font=verdana]No devices found.[/font]

02 11/16/17 9:28:22.266 Finished rotate logs <0x77e38000> 08 11/16/17 9:28:23.372 JobHandler_LuaUPnP::HandleActionRequest device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 action: AddEcontrol <0x731ae520> 08 11/16/17 9:28:23.373 JobHandler_LuaUPnP::HandleActionRequest argument action=AddEcontrol <0x731ae520> 08 11/16/17 9:28:23.373 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=477 <0x731ae520> 08 11/16/17 9:28:23.373 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Broadlink1 <0x731ae520> 08 11/16/17 9:28:23.374 JobHandler_LuaUPnP::HandleActionRequest argument eControl_ip=192.168.0.22 <0x731ae520> 02 11/16/17 9:28:23.375 luup_log:477: (BroadLink::UPNP::AddEcontrol) Called. <0x731ae520> 01 11/16/17 9:28:23.375 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd1 [wget "http://192.168.0.22:48815" -O /etc/cmh-ludl/eControl-data.zip]. <0x731ae520> 01 11/16/17 9:28:23.376 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd2 [unzip /etc/cmh-ludl/eControl-data.zip -d /etc/cmh-ludl/]. <0x731ae520> 01 11/16/17 9:28:23.377 luup_log:477: (BroadLink::UPNP::AddEcontrol) cmd3 [rm -rf /etc/cmh-ludl/SharedData; rm -f /etc/cmh-ludl/eControl-data.zip]. <0x731ae520> 01 11/16/17 9:28:24.805 luup_log:477: (BroadLink::UPNP::AddEcontrol) Error - No e-Control data retrieved. <0x731ae520> 01 11/16/17 9:28:24.832 LuaInterface::CallFunction_Job2 device 477 function SBroadlink_Broadlink1_AddEcontrol_run failed (null) with return false <0x731ae520> 02 11/16/17 9:28:24.833 JobHandler_LuaUPnP::RunAction device 477 action urn:micasaverde-com:serviceId:Broadlink1/AddEcontrol failed with 501/Action failed <0x731ae520>

@cybrmage

Thanks for the "PLUGIN: Wifi/UDP Switch Controller " I will try it.

[quote=“zedrally, post:70, topic:197515”] 01 11/16/17 9:28:24.805 luup_log:477: (BroadLink::UPNP::AddEcontrol) Error - No e-Control data retrieved. <0x731ae520> [/quote]

That line indicates that the plugin could not retrieve the eControl zip file from your device.

This is entirely out of the control of the plugin.

It means that the wget command issue using os,execute() did not generate the zip file.

So… That means that the eControl device is

  1. not accessible to the Vera
  2. is not sharing the data (The “share to device on WLan” function sets up a web server on the device… there are many possible reasons for this to fail on the eControl device).

Make sure that the IP address is correct, and that it IS accessible to the Vera device (ie: not on a remote network segment, etc).

Force close the e-Control app. Reboot the device and try running e-Control again after a fresh reboot.

Hi, so far I could not see the devices, so first thing first a basic question: do I need to have the RMs connected to the wifi network created by Vera or they can be connected to a separate wifi going into the same router? Thank you in advance

[quote=“cybrmage, post:1, topic:197515”]Broadlink RM2 Interface

Learn (IR only) and send (IR/RF codes) remote codes using your Vera.

No RM-Bridge required!!

Supported Devices

All Broadlink RM/RM2/RM3 devices.

Features:

Automatic detection of Broadlink devices
Management of IR codes from the code management page.
Manual send of codes from the code management page.
Send code using UPNP action, lua call_action or from a scene

Version History:

v1.13 (Version ID: 35006) November 14, 2017
– fixed - timestamp issue caused plugin crash on certain firmware versions
– fixed - unsupported devices appear in discovered device list

v1.10 (Version ID: 34952) November 7, 2017
– added - device discovery through device probing when discovery mechanism fails to discover devices
– added - device discovery via import of e-Control configuration
– changed - prevent re-import of IR/RF codes when processing additional e-Control imports
– changed - plugin excessively chatty when debug mode is disabled

v1.8 (Version ID: 34906) November 3, 2017
– fixed - json handling caused configuration page to fail to load under certain circumstances
– added - better device determination - support for more device variants

v1.6 (Version ID: 34892) October 30, 2017
– fixed - UPnP SendCode action causes plugin crash

v1.5 (Version ID: 34886) October 30, 2017
– fixed - code corruption when importing Pronto/e-Control codes
– fixed - code verification regected valid code under certain conditions
– added - update code name from code management page

v1.4 (Version ID: 34871) October 29, 2017
– added - Ability to manually import a code in the code management page
– added - Ability to manually import a PRONTO format code in the code management page
– added - Ability to import IR Code configuration from the Broadlink e-Controll mobile app (Android or IOS)
NOTE* - To import code from e-Control, you must

  1. know the IP Address of your device
  2. have the e-Control application running and select the “more functions” page (stacked bars icon in upper left corner of the “Control” page
  3. Select “share”, then select “Share to other phones in WLAN”
  4. On the plugin code management page, in the “Add code from network connected device running e-Control.” box, enter the IP address of the phone and click “Add”

v1.3 (Version ID: 34862) October 29, 2017
– fixed - typo prevented sending non-RF codes to non-pro devices

v1.2 (Version ID: 34856) October 29, 2017
– fixed - Broadlink device initial discovery did not occur
– added - option on device page to rescan for devices

v1.1 (Version ID: 34846) October 28, 2017
– Initial release.
– NOTE: This version will display in the UI as “v1.0”

Automatic installation:

You can install the plugin via the App Store from you Vera under the Apps/Install Apps menu.

You can update to the latest approved version in the App Store by going to Apps/My Apps, selecting the plugin and enabling “Auto Update”

You can force your Vera to update to a specific release before it is approved in the App Store by entering the following URL into your browser:

http://<your ip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8996&Version=<Version ID>

Make sure to replace with the IP Address of your Vera, and with the Version ID provided in the release post/ revision history.

Configuration

Once the plugin is installed, allow the LuaUPnP engine to finish loading and REFRESH YOUR BROWSER.

Open the device setup page, and click on the “Device” tab. The plugin will list all the Broadlink devices found on the network. Click on the “select” button next to the device you want to use for sending/learning IR codes.

You can then click on the “Codes” tab. The Codes page will show a summary of the existing learned codes (which will initially be empty). You can the click on the “Learn IR” button. The plugin will ask for the name you wish to give to the learned code. Once you enter the name and click on “ok”, the plugin will place the selected Broadlink device into learn mode (an amber led will light on the Broadlink device). You then have 30 seconds to point the remote at the broadlink device and press the button you wish to learn. Once the code is learned, the broadlink device will return to normal mode, and the code page will be updated with the new code. Once a code is learned, you can then test the code by clicking the “Send” button next to the code. Unneeded or unwanted codes can be removed by clicking on the “Remove” button.

To have the Broadlink device send an IR code, you can:

  1. Use a UPNP action to cause a stored code to be sent.

ie:

http://vera.ip.add.ress:3480/data_request?id=action&DeviceNum=<DeviceNumber>&serviceId=urn:micasaverde-com:serviceId:Broadlink1&action=SendCode&CodeData=<stored code identifier>

Where:
    vera.ip.add.ress = The IP Address of your Vera
    <DeviceNumber> = The Vera Device ID of the Broadlink RM device
    <stored code identifier> = the unique identifier of the stored code (see below for details)

or

luup.call_action("urn:micasaverde-com:serviceId:Broadlink1", "SendCode", {CodeData = "<stored code identifier>"}, <DeviceNumber>)

Where:
    <DeviceNumber> = The Vera Device ID of the Broadlink RM device
    <stored code identifier> = the unique identifier of the stored code (see below for details)
  1. Use the Vera Scene Advanced editor, to send a code from a Vera Scene.

In the Vera Scene Editor, to to the advanced editor and select “Add Action”, select the Broadlink RM Interface device, Select the “SendCode” action, and enter the stored code identifier into the CodeData text box, and click on “Add”.

Stored Code Identifiers

Each learned code must be identified with a unique identifier. The unique identifier can be either the name of the stored code or the ID shown on the code management page.

Please note that, at this time, if you use more that a single word for the name of a code, you MUST use the ID to identify the code.

NOTE: Although the plugin identifies the IP address of the device that learned a code, the codes are NOT specific to individual Broadlink devices. You CAN learn code with one device and send them with another device.

Import IR/RF codes or Devices from e-Control

  1. Determine the IP Address of the IOS/Android device running e-Control.
  2. have the e-Control application running and select the “more functions” page (stacked bars icon in upper left corner of the “Control” page
  3. Select “share”, then select “Share to other phones in WLAN”
  4. On the plugin code management page, in the “Add code from network connected device running e-Control.” box, enter the IP address of the phone and click “Add”

Note: Devices included in the e-Control data are not directly imported into the plugin. The device identifier is used to locate the device, if the device is located, it is added to the discovered device list. The device(s) are NOT automatically selected.

**** PLEASE NOTE ****

If you have problems, and expect any support… you MUST post LuaUPnP logs showing the operation of the plugin (with the plugin debug mode enabled).[/quote]

###################################################################################################

Hi, I’m new here, I’m following your explanation, but I do not go from this part:
2) Use the Vera Scene Advanced editor to send a Vera Scene code.
No vera edge is not showing my Broadlink when I have to add it to the scene!
Is there any other way to do it? :-\ :-\

Unfortunately, I have followed your suggestion and none of this helps. (I do appreciate your help with this)
I haven’t even able to “Learn” the codes directly.
The codes have been backed up and I have tried with the App running and not running, rebooted several times with no success.
I have even tried to access Broadlink directly and cannot, with the firewall turned either ON/Off.
I had expected a return message for a User name & Password, nup just an error page.
The only redeeming feature so far is that it works well Locally and Remotely just not with Vera.

If anyone has any suggestions, I’m all ears…

edit: could it be a specific Port that is being blocked?

In the meantime 'm going to setup Vera Concierge and see what happens next.

It uses UDP for communicating.
You might want to make sure you do not have an ethernet “SWITCH” between your Vera and your RM and Android device.

A “ROUTER” is fine, but some older "SWITCH"es do not handle the UDP broadcast.

Thanks Richard, you may have the solution. I have a Vera Edge plugged into a Almond+ which I use as a downstairs access point and for 5G wifi. I checked the ADSL (upstairs) Router Firewall yesterday but forgot about the AP which is something I’ll do tomorrow. It may be a case of moving Vera to a new home upstairs.

By the way I noticed that in eControl when configuring a Device there are 2 settings one for AP, then another setting (I can’t remember the name), could I be using the wrong setting? The Help FAQ appears to be silent on this setting.

Update: This is what I have tried so far.

[ul][li]Moved Vera to the Router’s Ethernet. Still no joy.[/li]
[li]Can ping the IP-BroadComPro OK so there is a connection.[/li]
[li]Powered Off the BroadcomPro, re-booted still nothing.[/li]
[li]Powered down the e-Contro App and restarted[/li]
[li]Checked Router Firewall, UDP on the Ports OK both ways.[/li]
[li]Both Vera & Android Broadlink App on same network[/li]
[li]Disabled Norton tried to Share multiple times. [/li][/ul]

I have also deleted the PlugIn and reinstalled it, although I don’t see how it could be a PlugIn issue.
There is little point in posting new logs as they are all similar to the first.

What have I overlooked?

After I uninstalled the plugin and installed again, the plugin worked to lock the codes …

I have more than one RM, I think I’m not getting the viae-control codes because of this.

A friend was able to inport all e-control codes, both IR and RF, all work well.

But it does not show the buttons to trigger the devices on another screen or in scenes.

In the App nothing shows me, only on the web.

Ok, for me it appears to be the Vera Firmware, reason why?.. I have a test Vera3 and can get the plugin to communicate with the Broadlink pro but can’t pull the commands. I can make new one, the. Save them and use them. The Vera Plus will not recognize the Broadlink at all. Any ideas???