Author Topic: PLUGIN: Broadlink RM Interface  (Read 19058 times)

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +13/-5
  • Black Cat Control Systems
Broadlink Files
« Reply #135 on: December 21, 2017, 11:56:39 pm »
Xmas present to all, but you need to work out how to create the device.
The .zip is of the files of v1.13.
/rant
I have given this a lot of thought and really did not want to offend anyone least cybermage who did give a lot of his time to Plug In development, but the silence has been deafening and one can only conclude that this was a deliberate act of vengeance against the Vera community. /end rant


Regarding the .zip file, curiously 2 files appear to be  empty on download, perhaps someone can explain it use them to create a Plug In.


I'm sorry this has come to this but I can no longer respect someone who leaves on such terms.
Minimum behaviour standard would have been to leave the Plug In and offer no support, walk away or have someone take it over if it became to much to administer.
If you think Broadlink situation is bad, then have pity on the Wink users.
I'm sure cybermage is reading this and most probably rubbing his hands in glee with the wonton havoc he has created, I hope he has a very merry xmas.....not.


edit: LUA file from this version was missing in zip.
« Last Edit: December 29, 2017, 05:51:37 pm by zedrally »
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline Dansker

  • Full Member
  • ***
  • Posts: 106
  • Karma: +0/-0
Re: PLUGIN: Broadlink RM Interface
« Reply #136 on: December 22, 2017, 12:20:21 am »
cybrmage helped me a lot and was always most courteous. This is a big loss for the community and Vera, both in code and people. I would sure like to hear his version of the story, and hopefully Vera guys are paying attention.

Hopefully a win-win evolves for cybrmage, Vera and the community. Maybe Vera should attempt to obtain (pay for) cybrmage's work?

Offline ninkasi

  • Full Member
  • ***
  • Posts: 212
  • Karma: +13/-4
Re: Broadlink Files
« Reply #137 on: December 22, 2017, 12:42:39 am »
/rant
I have given this a lot of thought and really did not want to offend anyone least cybermage who did give a lot of his time to Plug In development, but the silence has been deafening and one can only conclude that this was a deliberate act of vengeance against the Vera community. /end rant

No. So no. Cybrmage, like many of the people who have created plugins here, has done so out of a willingness to share that work with others and with no expectation of payment. I fully understand the frustration of not knowing why this happened, but it could be for any number of reasons. Maybe it was poor health, maybe it was at the demand of Vera, maybe it was due to a personal attack from someone on this site, perhaps it was a combination of things.... at this point no-one knows for certain. Maybe in time cybrmage may come back and let us know what happened. If they do come back, and I hope they do, we should welcome them back without recrimination.

What I do know for certain, based on just looking at their profile, is that cybrmage has been a part of this community since early 2014. Since then they have spent a lot of personal time giving others advice as well as developing and supporting many plugins that have filled a number of gaps in the base Vera product. For that we should all be thankful, and based on that I think we should all chill a bit. Hugs all around, eh? ;-)

So I hope everyone, including cybrmage, has a relaxing and safe xmas. Concentrate on what's important - family and friends - and I'm sure we'll sort this out soon.

Cheers
Home Automation veteran. Rolled own, then MisterHouse and X10, now Vera - mysensor arduino and ESP8266 network - zwave lights, locks, switches - milights - yeelights - google home(s) - Broadlink RM - raspberry pi(s) with various scripts for power and weather station - Logitech Harmony - Imperihome

Offline conchordian

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +4/-1
Re: Broadlink Files
« Reply #138 on: December 22, 2017, 09:50:14 pm »
Xmas present to all, but you need to work out how to create the device.
The .zip is of the files of v1.13.

Thanks for this.  I created the device, but startup LUA fails, so maybe it was designed for U17, and not U15 like I'm using.

http://rm-bridge.fun2code.de/ is a bridge that runs on Android, (in my case a TV), that will do what this plugin won't, or used to.

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +13/-5
  • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #139 on: December 22, 2017, 10:10:48 pm »
^^^
UI5, I would have thought that you would have had a UI7 machine running in parallel as I do!
Admittedly, UI5 is stable whilst I'm still not convinced about a complete transfer to UI7, might wait now for UI8.


I'm not sure that it runs on UI5, I never loaded it on the VL. Any new devices I add are UI7 and the thought never occurred to me of testing on UI5. MAybe someone else can chime in that is running UI5 to confirm?


The RM Bridge is interesting, how have you incorporated it into Vera?







Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline conchordian

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +4/-1
Re: PLUGIN: Broadlink RM Interface
« Reply #140 on: December 23, 2017, 08:14:36 pm »
The RM Bridge is interesting, how have you incorporated it into Vera?

I haven't as yet, but they're just http calls, so scenes with something like this in the LUUP part:

Code: [Select]
local status, result = luup.inet.wget("http://192.168.0.98:7474/?cmd=%7B%22api_id%22:1004,%22command%22:%22send_code%22,%22mac%22:%2234:fd:37:d7:90:95%22,%22data%22:%220a091f1e0a00a1e0a1f1d0a1e0a1d0b1e0a1d0b091f091e0a0005dc00000000000000000000%22%7D", 5)
The bridge learns the codes and gives you http links, which you can just paste between the "" above.
« Last Edit: December 23, 2017, 08:16:57 pm by conchordian »

Offline yatagx

  • Sr. Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
Re: PLUGIN: Broadlink RM Interface
« Reply #141 on: December 28, 2017, 03:50:49 pm »
i have used the pluging with RF devices and works very well, in case of the RF, you need to import the devices from the e-Control APP.

in order broadlink learn a RF you need to go to "user-defined" then go to Sweap Frequency option

Offline yatagx

  • Sr. Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
Re: PLUGIN: Broadlink RM Interface
« Reply #142 on: December 28, 2017, 03:54:42 pm »
i would like to add Cybermage Guide on how to setup the plugin, since has been removed

Quote

Broadlink plugin


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.16   (Version ID: 35216) December 11, 2017
-- added - openLuup display fixes

v1.15   (Version ID: 35201) December 9, 2017
-- fixed - javascript errors running under openLuup
-- fixed - plugin crash when running discovery under certain circumstances

v1.14   (Version ID: 35181) December 6, 2017
-- changed - change device category to 27 to facilitate support of scenes with Amazon Alexa

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:
Code: [Select]
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 <your ip> with the IP Address of your Vera, and <Version ID> 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:
Code: [Select]
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

Code: [Select]
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)




2) 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)

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +13/-5
  • Black Cat Control Systems
Re: Broadlink Files
« Reply #143 on: December 28, 2017, 07:15:59 pm »

So I hope everyone, including cybrmage, has a relaxing and safe xmas. Concentrate on what's important - family and friends - and I'm sure we'll sort this out soon.

Cheers
What has since transpired since is that he has logged in and removed many postings etc in his many plugins. No doubtfully smiling all the way while reading the chaos he has caused.
I doubt that there will be any sorting out.


We all need to move forward now and this thread probably isn't the right place for any solutions found.
The RM Bridge is available so we are not held to ransom or taken hostage by his actions.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline ninkasi

  • Full Member
  • ***
  • Posts: 212
  • Karma: +13/-4
Re: PLUGIN: Broadlink RM Interface
« Reply #144 on: December 29, 2017, 06:23:09 am »
cybrmage has contacted me, and does *not* want his code to be distributed. No reason was provided, but I respect this request. I will now remove these plugins from my vera and look at alternatives.
« Last Edit: December 29, 2017, 06:04:45 pm by ninkasi »
Home Automation veteran. Rolled own, then MisterHouse and X10, now Vera - mysensor arduino and ESP8266 network - zwave lights, locks, switches - milights - yeelights - google home(s) - Broadlink RM - raspberry pi(s) with various scripts for power and weather station - Logitech Harmony - Imperihome

Offline conchordian

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +4/-1
Re: PLUGIN: Broadlink RM Interface
« Reply #145 on: December 31, 2017, 12:53:49 am »
https://i.imgur.com/MAnYEx6.png is how to add it, after you have uploaded the files.

Thanks, zedrally for adding that extra file, it seems to work now? well at least load. It seems pretty dodgy though, I can't get it to send a Pronto code, and if I try to open the code's page it just freezes on:

Opening configureCodesPage...

Looks like the guy's hissy fit saved me a lot of frustration, because it forced me to discover the RM bridge, and that works really well.

I thought I'd try it out of curiosity, but back to the delete icon you go.

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 859
  • Karma: +63/-8
Re: PLUGIN: Broadlink RM Interface
« Reply #146 on: January 09, 2018, 08:31:07 pm »

Offline sebby

  • Sr. Member
  • ****
  • Posts: 268
  • Karma: +9/-3
Re: PLUGIN: Broadlink RM Interface
« Reply #147 on: January 09, 2018, 10:22:39 pm »
BroadLink Mark II plugin to try out:

http://forum.micasaverde.com/index.php/topic,53871.0.html

Sir, you are a gentleman and a scholar...