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

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #45 on: November 13, 2017, 05:06:13 pm »
Attached a pdf of it.

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



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.
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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #46 on: November 13, 2017, 10:33:17 pm »
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
  • MIOS_VERSION [UI7] <0x7722f520>
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>
« Last Edit: November 13, 2017, 10:37:09 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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline cybrmage

  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +105/-5
Re: PLUGIN: Broadlink RM Interface
« Reply #47 on: November 13, 2017, 11:22:35 pm »
try this...
« Last Edit: November 14, 2017, 10:39:31 am by cybrmage »
EVL3Vista - Wink Connect - Caseta Connect - Venstar Colortouch - WiFi UDP Switch Controller - Broadlink RM - MyQGateway

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #48 on: November 13, 2017, 11:58:56 pm »
Nup, I'm getting the hang of this now  :) 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
  • 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>
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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline cybrmage

  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +105/-5
Re: PLUGIN: Broadlink RM Interface
« Reply #49 on: November 14, 2017, 12:29:11 am »
once again...
« Last Edit: November 14, 2017, 10:39:53 am by cybrmage »
EVL3Vista - Wink Connect - Caseta Connect - Venstar Colortouch - WiFi UDP Switch Controller - Broadlink RM - MyQGateway

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #50 on: November 14, 2017, 12:34:40 am »
Still no, do you still need the log?
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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline cybrmage

  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +105/-5
Re: PLUGIN: Broadlink RM Interface
« Reply #51 on: November 14, 2017, 12:37:52 am »
Still no, do you still need the log?

Of course I do... I'm still NOT psychic...
EVL3Vista - Wink Connect - Caseta Connect - Venstar Colortouch - WiFi UDP Switch Controller - Broadlink RM - MyQGateway

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #52 on: November 14, 2017, 12:50:06 am »
I'd lend you my crystal ball except it has a Vera FW bug :)


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 
  • MIOS_VERSION [UI7] <0x778df520>[/color] 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]
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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #53 on: November 14, 2017, 12:56:20 am »
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.

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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline cybrmage

  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +105/-5
Re: PLUGIN: Broadlink RM Interface
« Reply #54 on: November 14, 2017, 01:00:31 am »
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?
EVL3Vista - Wink Connect - Caseta Connect - Venstar Colortouch - WiFi UDP Switch Controller - Broadlink RM - MyQGateway

Offline zedrally

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +1/-0
  • Black Cat Controllers & Control Systems
    • Black Cat Control Systems
Re: PLUGIN: Broadlink RM Interface
« Reply #55 on: November 14, 2017, 01:04:33 am »
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.
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, then some  Black Cat Cat's Eye PIR's & Door-Window Sensors plus a Z-UNO or 2.

Offline cybrmage

  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +105/-5
Re: PLUGIN: Broadlink RM Interface
« Reply #56 on: November 14, 2017, 01:07:40 am »
Actually... You *DID* state that it was not working...


Still no, do you still need the log?

What do you mean tommorrow??? You're in Oz... It is Tommorrow...
EVL3Vista - Wink Connect - Caseta Connect - Venstar Colortouch - WiFi UDP Switch Controller - Broadlink RM - MyQGateway

Offline TMC

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: PLUGIN: Broadlink RM Interface
« Reply #57 on: November 14, 2017, 03:07:00 am »
Hi cybrmage.
I used the L_Broadlink.lua file and it works.
Great work.
Thanks.

Offline Guimaraes

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: PLUGIN: Broadlink RM Interface
« Reply #58 on: November 14, 2017, 04:22:46 am »
Yes, it picks up all the devices, S1, SC1, MP1 SP, SP3, SP mini ...

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

Offline Newzwaver

  • Full Member
  • ***
  • Posts: 232
  • Karma: +4/-3
Re: PLUGIN: Broadlink RM Interface
« Reply #59 on: November 14, 2017, 12:38:25 pm »
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://<your ip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8996&Version=<Version ID>
  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"
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