PLUGIN: Broadlink RM Interface

Mine looks this way, but I can not write the codes …

Hello,

Does the plugin can also be used with Broadlink SP (SmartPlug) devices - IP based plugs ?
I don’t have any central Broadlink device beside the e-control app.

Thanks,
Nir

which is quite useless… It shows 4 seconds of the Vera Z-Wave initialization, and not anything else…

Which shows that you have some devices, and have selected a device… You don’t show the “Codes” tab, which is where the codes are managed and manually sent… So far, I don’t see a problem… If you can’t send codes, show a screenshot of the codes page and the LuaUPnP log showing a send attempt…

No. This plugin is exclusively for the Broadlink RM (remote control) devices.

Hi cybrmage.
How can I post LuaUPnP logs showing the operation of the plugin?

[quote=“Bananfluen, post:39, topic:197515”][quote=“TMC, post:32, topic:197515”]Auto-discovery does not work. I have Vera Edge and Broadlink with the latest updates. For Broadlink plugin I tried the versions: 1.4, 1.8 and 1.10. If I force my Vera to update to a specific release the version is changed but the same effect does not work. I get the following message:

[tt]This page contains the following errors:
error on line 2 at column 50: xmlns:u: ‘Unknown Service’ is not a valid URI
Below is a rendering of the page up to the first error.[/tt]

OK

If I press DEBUG button I get the following message:
ERROR: Device not ready[/quote]

First of all, thanks for your effort making a plugin! I also get the exact same error as this. Would love to have this plugin working.[/quote]

I’m not the person who developed the plugin.

which is quite useless… It shows 4 seconds of the Vera Z-Wave initialization, and not anything else…[/quote]

I thought as much but have no idea of how to get the log info you need. When it comes to this it looks like I’m not alone and need some hand holding to get the log info you need.

Take 2.
The attachment covers deleting, reloading and installing V1.8


************** STARTING **************
************************************** <0x7722f520>
02 11/14/17 14:18:29.598 luup_log:477: (BroadLink::getMiosVersion): vera_model [Sercomm NA301] mios_branch [1] mios_major [7] mios_minor [3014]. <0x7722f520>
02 11/14/17 14:18:29.599 luup_log:477: (BroadLink::getMiosVersion): MIOS_VERSION [UI7] openLuup [FALSE]. <0x7722f520>
06 11/14/17 14:18:29.600 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: PLUGIN_VERSION was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.601 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: EMPTY now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.602 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: SelectedDevice was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.602 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DISCOVERED_DEVICES was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.603 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: CommandCodes was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.604 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:HaDevice1 variable: CommFailure was: EMPTY now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x8bad78/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.605 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:HaDevice1 variable: ID was: EMPTY now: Broadlink RM Interface #hooks: 0 upnp: 0 skip: 0 v:0xa489d8/NONE duplicate:0 <0x7722f520>
06 11/14/17 14:18:29.606 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: PLUGIN_VERSION was: now: v1.8 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x7722f520>
50 11/14/17 14:18:29.606 luup_log:477: (BroadLink::Plugin_Init): Broadlink RM Interface - Plugin version [v1.8] - isDisabled
[ul][li] MIOS_VERSION [UI7] <0x7722f520>[/li][/ul]

06 11/14/17 14:18:29.607 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x7722f520>
06 11/14/17 14:18:29.608 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x7722f520>
02 11/14/17 14:18:29.609 luup_log:477: (BroadLink::getDebugMode) DEBUG MODE [DISABLED] UnitID [NIL] DEV_SYS [FALSE]. <0x7722f520>
01 11/14/17 14:18:29.616 LuaInterface::CallFunction_Startup-1 device 477 function Plugin_Init failed [string “VERSION = “v1.8”…”]:800: bad argument #1 to ‘char’ (invalid value) <0x7722f520>
01 11/14/17 14:18:29.616 LuImplementation::StartLua running startup code for 477 I_Broadlink.xml failed <0x7722f520>
06 11/14/17 14:18:30.101 Device_Variable::m_szValue_set device: 196 service: urn:futzle-com:serviceId:AstronomicalPosition_Sun variable: RightAscensionRounded was: -130.5 now: -130.5 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x75e2f520>
06 11/14/17 14:18:30.102 Device_Variable::m_szValue_set device: 196 service: urn:futzle-com:serviceId:AstronomicalPosition_Sun variable: DeclinationRounded was: -18.3 now: -18.3 #hooks: 1 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x75e2f520>
06 11/14/17 14:18:30.103 Device_Variable::m_szValue_set device: 196 service: urn:futzle-com:serviceId:AstronomicalPosition_Sun variable: AzimuthRounded was: -44.4 now: -44.6 #hooks: 1 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x75e2f520>
50 11/14/17 14:18:30.112 luup_log:447: RFXtrx: Tree with number child devices: 3 <0x7542f520>
50 11/14/17 14:18:30.112 luup_log:447: RFXtrx: door sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.113 luup_log:447: RFXtrx: motion sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.113 luup_log:447: RFXtrx: light sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.114 luup_log:447: RFXtrx: light switches: 0 <0x7542f520>
50 11/14/17 14:18:30.114 luup_log:447: RFXtrx: dim light switches: 0 <0x7542f520>
50 11/14/17 14:18:30.115 luup_log:447: RFXtrx: window covering: 3 <0x7542f520>
50 11/14/17 14:18:30.115 luup_log:447: RFXtrx: temperature sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.116 luup_log:447: RFXtrx: humidity sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.116 luup_log:447: RFXtrx: barometric sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.116 luup_log:447: RFXtrx: wind sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.117 luup_log:447: RFXtrx: rain sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.117 luup_log:447: RFXtrx: UV sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.118 luup_log:447: RFXtrx: weight sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.118 luup_log:447: RFXtrx: power sensors: 0 <0x7542f520>
50 11/14/17 14:18:30.119 luup_log:447: RFXtrx: security remotes: 0 <0x7542f520>
50 11/14/17 14:18:30.119 luup_log:447: RFXtrx: remote controls: 0 <0x7542f520>
03 11/14/17 14:18:30.123 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 1 <0x7722f520>
03 11/14/17 14:18:30.124 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 0 <0x7722f520>
50 11/14/17 14:18:30.130 luup_log:447: RFXtrx: heating devices: 0 <0x7542f520>
50 11/14/17 14:18:30.130 luup_log:447: RFXtrx: RFXMeters: 0 <0x7542f520>

try this…

Nup, I’m getting the hang of this now :slight_smile: Thanks.


************** STARTING **************
************************************** <0x778e7520>
02 11/14/17 15:52:54.761 luup_log:477: (BroadLink::getMiosVersion): vera_model [Sercomm NA301] mios_branch [1] mios_major [7] mios_minor [3014]. <0x778e7520>
02 11/14/17 15:52:54.761 luup_log:477: (BroadLink::getMiosVersion): MIOS_VERSION [UI7] openLuup [FALSE]. <0x778e7520>
06 11/14/17 15:52:54.762 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: PLUGIN_VERSION was: v1.10 now: v1.11 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x778e7520>
50 11/14/17 15:52:54.763 luup_log:477: (BroadLink::Plugin_Init): Broadlink RM Interface - Plugin version [v1.11] - isDisabled [0] MIOS_VERSION [UI7] <0x778e7520>
06 11/14/17 15:52:54.764 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x778e7520>
06 11/14/17 15:52:54.764 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x778e7520>
02 11/14/17 15:52:54.765 luup_log:477: (BroadLink::getDebugMode) DEBUG MODE [DISABLED] UnitID [NIL] DEV_SYS [FALSE]. <0x778e7520>
01 11/14/17 15:52:54.772 LuaInterface::CallFunction_Startup-1 device 477 function Plugin_Init failed [string “VERSION = “v1.11”…”]:929: bad argument #1 to ‘char’ (invalid value) <0x778e7520>
01 11/14/17 15:52:54.773 LuImplementation::StartLua running startup code for 477 I_Broadlink.xml failed <0x778e7520>
03 11/14/17 15:52:54.774 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 1 <0x778e7520>
03 11/14/17 15:52:54.774 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 0 <0x778e7520>
06 11/14/17 15:52:55.101 Device_Variable::m_szValue_set device: 196 service: urn:futzle-com:serviceId:AstronomicalPosition_Sun variable: RightAscensionRounded was: -130.4 now: -130.4 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x762e7520>
06 11/14/17 15:52:55.102 Device_Variable::m_szValue_set device: 196 service: urn:futzle-com:serviceId:AstronomicalPosition_Sun variable: DeclinationRounded was: -18.3 now: -18.3 #hooks: 1 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x762e7520>
50 11/14/17 15:52:55.107 luup_log:447: RFXtrx: Tree with number child devices: 3 <0x758e7520>

once again…

Still no, do you still need the log?

Of course I do… I’m still NOT psychic…

I’d lend you my crystal ball except it has a Vera FW bug :slight_smile:

[pre]02 11/14/17 16:46:15.757 luup_log:477: (BroadLink::Plugin_Init): Broadlink RM Interface v1.12 ************************************** ************** STARTING ************** ************************************** <0x778df520> 02 11/14/17 16:46:15.759 luup_log:477: (BroadLink::getMiosVersion): vera_model [Sercomm NA301] mios_branch [1] mios_major [7] mios_minor [3014]. <0x778df520> 02 11/14/17 16:46:15.760 luup_log:477: (BroadLink::getMiosVersion): MIOS_VERSION [UI7] openLuup [FALSE]. <0x778df520> 50 11/14/17 16:46:15.760 luup_log:477: (BroadLink::Plugin_Init): Broadlink RM Interface - Plugin version [v1.12] - isDisabled [0] MIOS_VERSION [UI7] <0x778df520> 06 11/14/17 16:46:15.761 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x778df520> 06 11/14/17 16:46:15.762 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:Broadlink1 variable: DebugMode was: DISABLED now: DISABLED #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x778df520> 02 11/14/17 16:46:15.762 luup_log:477: (BroadLink::getDebugMode) DEBUG MODE [DISABLED] UnitID [NIL] DEV_SYS [FALSE]. <0x778df520> 02 11/14/17 16:46:15.769 luup_log:477: (BroadLink::Plugin_Init): Loaded Devices [ 1: [ KEY: a37dd835d9f04e251064c51446d73b04 IP: 192.168.0.22 MAC: 34:ea:34:8e:fa:0b internalID: 02000000 isPro: TRUE Name: sensors: [ temperature: 27.1 ] hasAuth: TRUE devType: 10119 devTypeName: RM2 Pro Plus2 hasTemp: TRUE hasIR: TRUE ] 2: [ KEY: aad79912aad79912e14a100217be8671 MAC: 34:ea:34:40:99:8f IP: 192.168.0.25 internalID: 02000000 devType: 10039 isPro: FALSE Name: hasAuth: TRUE devTypeName: RM Mini hasTemp: FALSE hasIR: TRUE ] ]. <0x778df520> 02 11/14/17 16:46:15.770 luup_log:477: (BroadLink::Plugin_Init): Loaded Commands [ ]. <0x778df520> 02 11/14/17 16:46:15.770 luup_log:477: (BroadLink::Plugin_Init): Selected Device [ ]. <0x778df520> 02 11/14/17 16:46:15.771 luup_log:477: (BroadLink::Plugin_Init): Broadlink RM Interface controller v1.12 ************************************** *********** INIT COMPLETED *********** ************************************** <0x778df520> 03 11/14/17 16:46:15.772 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 1 <0x778df520> 03 11/14/17 16:46:15.773 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 0 <0x778df520> 50 11/14/17 16:46:16.105 luup_log:447: RFXtrx: Tree with number child devices: 3 <0x758df520> 50 11/14/17 16:46:16.106 lu[/pre]

OK, hold on.
It’s come good, not sure why it took so long.

I’ll have a good look at it tomorrow and report back.

ok… So… Where’s the problem???

Logs show that it found a device, and that you have not added any commands or selected the device.

How do you figure it’s not working?

I didn’t say it wasn’t working, just that I’ll look further into the Plug In tomorrow and report if I run into any problems.
Thanks for all your help and the time you have taken to develop and de-bug, it’s an enormous effort.

Actually… You DID state that it was not working…

What do you mean tommorrow??? You’re in Oz… It is Tommorrow…

Hi cybrmage.
I used the L_Broadlink.lua file and it works.
Great work.
Thanks.

Yes, it picks up all the devices, S1, SC1, MP1 SP, SP3, SP mini …

[quote=“nirgal, post:42, topic:197515”]Hello,

Does the plugin can also be used with Broadlink SP (SmartPlug) devices - IP based plugs ?
I don’t have any central Broadlink device beside the e-control app.

Thanks,
Nir[/quote]

HI

First of all I like to say a big thanks for when I get this working.

I am trying to set up the plugin, I originally loaded V1.10, didn’t work followed the following instructions;

  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”
    Forced the plugin update to V1.4
    http://:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8996&Version=
  5. know the IP Address of your device
  6. have the e-Control application running and select the “more functions” page (stacked bars icon in upper left corner of the “Control” page
  7. Select “share”, then select “Share to other phones in WLAN”
  8. 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”
    Then forced the plugin to V1.8 and still no go.

I have also reset the Broadlink Pro and rebooted vera a number of times. I have the correct IP address in the advanced ip address. When I press debug I get the following error.
Device not ready.

I have tried the
Add code from network connected device running e-Control.

When trying to obtain the log I get the following error;
ERROR: Invalid service/action/device
I could be doing that wrong.
Thanks