Plugin: Razberry support for openLuup/ALTUI

There’s already two working approaches to this:

[ul][li]Misc > Remote Access Login[/li]
[li]and weaved.com [/li][/ul][/quote]

very good !!

tnks

Looks like we might need the following…

[Light]
device_file: D_LightSensor1.xml
device_json: D_LightSensor1.json
device_type: urn:schemas-micasaverde-com:device:LightSensor:1

[Routing Multilevel Sensor_2]
device_file: D_MotionSensor1.xml
device_json: D_MotionSensorWithTamper1.json
device_type: urn:schemas-micasaverde-com:device:MotionSensor:1

Not displaying LastTrip on the device in the UI. Values are correct in variables.

[Ultraviolet]
device_file: D_LightSensor1.xml
device_json: D_UVSensor1.json
device_type: urn:schemas-micasaverde-com:device:LightSensor:1

Not displaying the UV level on the device. Value is correct within variables.

Looking great so far though !
Edit: @ShawnParr, can you confirm that the child devices are refreshing (e.g. Temp, Humidity) without a reload ? Mine seem to require a reload.

[quote=“CudaNet, post:38, topic:192902”]I discovered I had param 5 set to a value of ‘1’ (send basic report) for the 6 to 1. My bad… Had to set it to ‘2’ (Send Sensor Binary Report CC.) and now I see last trip and last untrip.
I’ll provide more detailed observations when I get a chance. In the meantime, I’ll attach logs.[/quote]

dev paused for a few days
… time for me to take a quick break

in case of issues
a) if the issue is a ALTUI dashboard display issue , please confirm the device json file, the deviec D.xml file and actual device type.

b) if the issue is a device creation/recognition issue or a device variable update issue

  1. please try to delete the device parent and try again
  2. please communicate the http://:8083/ZWave.zway/Data/0 result

Alexis

@amg0,

Posting some pics of the device attributes as they were generated by the parent. I removed the Parent after loading the latest Raz (0.07). I’ll check into URL and report back.
Enjoy your time off…

Edit: And the log (http://:8083/ZWave.zway/Data/0 result)…

[quote=“amg0, post:43, topic:192902”]dev paused for a few days
… time for me to take a quick break

in case of issues
a) if the issue is a ALTUI dashboard display issue , please confirm the device json file, the deviec D.xml file and actual device type.

b) if the issue is a device creation/recognition issue or a device variable update issue

  1. please try to delete the device parent and try again
  2. please communicate the http://:8083/ZWave.zway/Data/0 result

Alexis[/quote]

One problem with the Light sensor is that the device file should be D_LightSensor1.xml not D_Light.xml.

Agreed, looks like we can adjust this within the L_RAZB,

    [0x21] = {label="Multilevel Sensor",  category = 12,  upnp_file = "D_GenericSensor1.xml",
        sensor_type = {
            ["Light"]       = {upnp_file="D_Light.xml", device_type="urn:schemas-micasaverde-com:device:LightSensor:1"},
            ["Humidity"]    = {upnp_file="D_HumiditySensor1.xml", device_type="urn:schemas-micasaverde-com:device:HumiditySensor:1"},
            ["Temperature"] = {upnp_file="D_TemperatureSensor1.xml", device_type="urn:schemas-micasaverde-com:device:TemperatureSensor:1"},
          }
      },

One problem with the Light sensor is that the device file should be D_LightSensor1.xml not D_Light.xml.[/quote]

I did checked that in github

You’re supposed to be on break… Time to close this thread for a week !!!

After some research (here and Google), I’ve got my razberry zwave card working with raspberry Pi3. (need to switch off bluetooth see this link for info Setting up Razberry on a Pi model 3B - Raspberry Pi Forums) included a switch on z-wave interface, did the usual vera dance and hey ho switch appeared on Altui. I was able to control the switch from the altui web page, so proof of concept!!
Well done amg0.

Outstanding, thanks for the Pi3/BT link and heads up… That would have caused some headaches for some…

[quote=“dsroberts1945, post:49, topic:192902”]After some research (here and Google), I’ve got my razberry zwave card working with raspberry Pi3. (need to switch off bluetooth see this link for info Setting up Razberry on a Pi model 3B - Raspberry Pi Forums) included a switch on z-wave interface, did the usual vera dance and hey ho switch appeared on Altui. I was able to control the switch from the altui web page, so proof of concept!!
Well done amg0.[/quote]

Since I have the RaZberry board running on a test rPi linked to the Aeotec 6 in 1. If either AK or Amg0 is interested, I can certainly share this device via Weaved. This might be easier to add support for devices. I can also add the z.way server port if needed. I subscribe to a 2 hour window time and 2 concurrent connections. If more time/sessions are needed then I’d be happy to increase the service.

As always, just let me know how I can help.

Ah yes, interested! I’m playing with the USB plugin and somewhat different code from @amg0. Not quite ready yet to merge this.

[quote=“CudaNet, post:51, topic:192902”]Since I have the RaZberry board running on a test rPi linked to the Aeotec 6 in 1. If either AK or Amg0 is interested, I can certainly share this device via Weaved. This might be easier to add support for devices. I can also add the z.way server port if needed. I subscribe to a 2 hour window time and 2 concurrent connections. If more time/sessions are needed then I’d be happy to increase the service.

As always, just let me know how I can help.[/quote]

I have put on Github master branch a new version. this requires to delete your existing device ( not necessary to include; exclude in zwave, just delete the device and let openluup/razberry plugin recreate them )

changes:

-changes logic to create multi instance devices and device with multisensor cmdclass
-openluup device altid contains “zwid_instanceid_cmdcls_idx” or “zwid_instanceid” according to the situation
-ZW_Generic_Specific variable introduced to hold device instance generic and specific type value.
-ZW_PID variable to include manuf, product type and product ID
-Unk device has a IconCode variable ( which will leverage & display zway icon )
-ALtUI must also be upgraded to latest vrsion in github master branch
-use D_LightSensor1

Help needed

  • testing some devices
  • reporting issues with screen shots and http://:8083/ZWave.zway/Data/0 result

AK, send me a PM with the Weaved email address. I’ll add the z-way port to Weaved and share that as well. The z-way port will be needed because you first have to authenticate before attempting to capture the results of http://:8083/ZWave.zway/Data/0 result.

You can add others by entering their email used at Weaved and pressing Add. To stop sharing with a user, click the delete icon next to their email. Your account allows sharing this service with 2 Weaved user(s).

Let me see… I updated to the latest AltUI and RaZ just a few hours ago. I deleted the device and I do see differences. I also notice that all the child devices now indicate not a number. I’ll grab the feed from http://:8083/ZWave.zway/Data/0 result when I get home tonight.

AltUI v1.60.1807, ? 2015 amg0,88800000, *1.7.0*, Greenwich, England, UNITED KINGDOM User: 2cfc77e3-f200-4016-b32b-5d86a5fe20e9 , Unregistered Version /

And a directory listing:
drwxr-xr-x 2 root root   4096 Jul 15 15:41 backup
drwxr-xr-x 2 pi   pi     4096 Mar 12 16:15 cgi
drwxr-xr-x 3 pi   pi     4096 Mar 12 16:15 cgi-bin
-rw-r--r-- 1 pi   pi     5890 Jul 20 16:22 D_ALTUI.json
-rw-r--r-- 1 pi   pi     6667 Jul 20 16:22 D_ALTUI_UI7.json
-rw-r--r-- 1 pi   pi     1086 Jul 20 16:22 D_ALTUI.xml
-rw-r--r-- 1 pi   pi     4532 Jul 11 08:13 D_HumiditySensor1.json
-rw-r--r-- 1 pi   pi      821 Jul 11 08:13 D_HumiditySensor1.xml
-rw-r--r-- 1 pi   pi     4640 Oct 14  2015 D_LightSensor1.json
-rw-r--r-- 1 pi   pi      922 Jul 15 08:20 D_LightSensor1.xml
-rw-r--r-- 1 pi   pi      436 Jul 11 08:13 D_MimoSensor.json
-rw-r--r-- 1 pi   pi      431 Jul 11 08:13 D_MimoSensor.xml
-rw-r--r-- 1 pi   pi    12406 Jul 11 08:13 D_MotionSensor1.json
-rw-r--r-- 1 pi   pi      813 Jul 11 08:13 D_MotionSensor1.xml
-rw-r--r-- 1 pi   pi     4354 Jul 20 16:23 D_RAZB.json
-rw-r--r-- 1 pi   pi     4354 Jul 20 16:23 D_RAZB_UNK.json
-rw-r--r-- 1 pi   pi     1124 Jul 20 16:23 D_RAZB_UNK.xml
-rw-r--r-- 1 pi   pi     1083 Jul 20 16:23 D_RAZB.xml
-rw-r--r-- 1 root root   3533 Jul  9 18:55 D_RGBController1.json
-rw-r--r-- 1 root root   3983 Jul  9 18:55 D_RGBController1_UI7.json
-rw-r--r-- 1 root root   1240 Jul  9 18:55 D_RGBController1.xml
-rw-r--r-- 1 pi   pi     5535 Jul 11 08:07 D_Siren1.json
-rw-r--r-- 1 pi   pi      779 Jul 11 08:07 D_Siren1.xml
-rw-r--r-- 1 pi   pi     9312 Jul 11 08:13 D_SmokeSensor1.json
-rw-r--r-- 1 pi   pi      811 Jul 11 08:14 D_SmokeSensor1.xml
-rw-r--r-- 1 pi   pi     9958 Jul 11 08:14 D_SmokeSensorWithTamper1.json
-rw-r--r-- 1 pi   pi     4559 Jul 11 08:14 D_TemperatureSensor1.json
-rw-r--r-- 1 pi   pi      818 Jul 11 08:14 D_TemperatureSensor1.xml
-rw-r--r-- 1 pi   pi     4850 Jul 11 08:21 D_UVSensor1.json
-rw-r--r-- 1 pi   pi      684 Jul  9 17:26 D_VeraBridge.json
-rw-r--r-- 1 pi   pi      988 Jul  9 17:26 D_VeraBridge.xml
-rw-r--r-- 1 pi   pi     1150 Feb 26 08:27 favicon.ico
-rw-r--r-- 1 pi   pi     1708 Jul 20 16:22 I_ALTUI.xml
-rw-r--r-- 1 pi   pi     1318 Jul  9 10:42 iconALTUI.png
-rw-r--r-- 1 pi   pi     2478 Jul  9 15:33 iconRAZB.png
drwxr-xr-x 2 pi   pi     4096 Jul 13 07:57 icons
-rw-r--r-- 1 pi   pi     4264 Jul 11 08:14 I_MimoSensor.xml
-rw-r--r-- 1 pi   pi      206 Mar  7 03:15 index.html
-rw-r--r-- 1 pi   pi     6293 Jul 11 08:14 I_PhilipsHue2.xml
-rw-r--r-- 1 pi   pi      155 Jul 20 16:23 I_RAZB_UNK.xml
-rw-r--r-- 1 pi   pi      480 Jul 20 16:23 I_RAZB.xml
-rw-r--r-- 1 root root   3228 Jul  9 18:55 I_RGBController1.xml
-rw-r--r-- 1 pi   pi     1066 Jul 11 08:14 I_SecuritySensor1.xml
-rw-r--r-- 1 pi   pi      328 Jul  9 17:26 I_VeraBridge.xml
-rw-r--r-- 1 pi   pi      572 Jul 11 08:14 I_ZWave.xml
-rw-r--r-- 1 pi   pi    52200 Jul 20 16:22 J_ALTUI_api.js
-rw-r--r-- 1 pi   pi   591636 Jul 20 16:22 J_ALTUI_b_blockly_compressed.js
-rw-r--r-- 1 pi   pi    67287 Jul 20 16:22 J_ALTUI_b_blocks_compressed.js
-rw-r--r-- 1 pi   pi    28599 Jul 20 16:22 J_ALTUI_b_en.js
-rw-r--r-- 1 pi   pi    31550 Jul 20 16:22 J_ALTUI_b_fr.js
-rw-r--r-- 1 pi   pi    30999 Jul 20 16:22 J_ALTUI_b_it.js
-rw-r--r-- 1 pi   pi    44532 Jul 20 16:22 J_ALTUI_b_javascript_compressed.js
-rw-r--r-- 1 pi   pi    31571 Jul 20 16:22 J_ALTUI_b_lua_compressed.js
-rw-r--r-- 1 pi   pi    13031 Jul 20 16:22 J_ALTUI_iphone.js
-rw-r--r-- 1 pi   pi    55006 Jul 20 16:22 J_ALTUI_jquery.ui.touch-punch.min.js
-rw-r--r-- 1 pi   pi    12631 Jul 20 16:22 J_ALTUI.js
-rw-r--r-- 1 pi   pi    24537 Jul 20 16:22 J_ALTUI_loc_es.js
-rw-r--r-- 1 pi   pi    24642 Jul 20 16:22 J_ALTUI_loc_fr.js
-rw-r--r-- 1 pi   pi    23403 Jul 20 16:22 J_ALTUI_loc_it.js
-rw-r--r-- 1 pi   pi    36947 Jul 20 16:22 J_ALTUI_multibox.js
-rw-r--r-- 1 pi   pi    67058 Jul 20 16:22 J_ALTUI_plugins.js
-rw-r--r-- 1 pi   pi   628009 Jul 20 16:22 J_ALTUI_uimgr.js
-rw-r--r-- 1 pi   pi    22462 Jul 20 16:22 J_ALTUI_upnp.js
-rw-r--r-- 1 pi   pi   113939 Jul 20 16:22 J_ALTUI_utils.js
-rw-r--r-- 1 pi   pi    74597 Jul 20 16:22 J_ALTUI_verabox.js
-rw-r--r-- 1 pi   pi     1894 Jul  9 15:22 J_ALTUx_loc_zz.js
-rw-r--r-- 1 pi   pi     5620 Jul 20 16:23 J_RAZB.js
-rw-r--r-- 1 root root  47383 Jul  9 18:55 J_RGBController1.js
-rw-r--r-- 1 root root  11763 Jul  9 17:26 json.lua
-rw-r--r-- 1 root root  17328 Jul  9 17:26 L_AltAppStore.lua
-rw-r--r-- 1 pi   pi     3579 Jul 20 16:22 L_ALTUI_compress.lua
-rw-r--r-- 1 pi   pi    17121 Jul 20 16:22 L_ALTUIjson.lua
-rw-r--r-- 1 pi   pi   148976 Jul 20 16:22 L_ALTUI.lua
-rw-r--r-- 1 pi   pi     3584 Jul 20 16:22 L_ALTUI_LuaRunHandler.lua
-rw-r--r-- 1 root root    546 Jul  9 10:42 logoALTUI.png
-rw-r--r-- 1 root root  10525 Jul  9 17:26 logs.lua
-rw-r--r-- 1 root root   4776 Jul  9 17:26 L_openLuup.lua
-rw-r--r-- 1 pi   pi    41564 Jul 20 16:23 L_RAZB.lua
-rw-r--r-- 1 root root  46790 Jul  9 18:55 L_RGBController1.lua
-rw-r--r-- 1 root root 269091 Jul 20 17:48 LuaUPnP.log
-rw-r--r-- 1 root root 267101 Jul 20 17:02 LuaUPnP.log.1
-rw-r--r-- 1 root root 265271 Jul 20 16:56 LuaUPnP.log.2
-rw-r--r-- 1 root root 265639 Jul 20 16:49 LuaUPnP.log.3
-rw-r--r-- 1 root root 270492 Jul 20 16:42 LuaUPnP.log.4
-rw-r--r-- 1 root root 266132 Jul 20 16:36 LuaUPnP.log.5
-rw-r--r-- 1 pi   pi    25820 Jul  9 17:26 L_VeraBridge.lua
drwxr-xr-x 2 pi   pi     4096 Jul 15 12:49 openLuup
-rw-r--r-- 1 pi   pi     1772 Mar  7 03:15 openLuup_check.lua
-rw-r--r-- 1 pi   pi     2495 Mar  7 03:15 openLuup_getfiles.lua
-rwxr-xr-x 1 pi   pi      223 Mar  7 03:15 openLuup_reload
drwxr-xr-x 4 pi   pi     4096 Jul  9 19:46 plugins
-rw-r--r-- 1 pi   pi    15576 Jul 11 08:14 S_AlarmPartition2.xml
-rw-r--r-- 1 pi   pi     8144 Jul 20 16:22 S_ALTUI.xml
-rw-r--r-- 1 pi   pi     8919 Jul 11 08:14 S_Dimming1.xml
-rw-r--r-- 1 pi   pi     8595 Jul 11 08:14 S_DoorLock1.xml
-rw-r--r-- 1 pi   pi      405 Jul 11 08:15 S_GenericSensor1.xml
-rw-r--r-- 1 pi   pi     3172 Oct 17  2015 S_HaDevice1.xml
-rw-r--r-- 1 pi   pi      408 Jul 11 08:15 S_HumiditySensor1.xml
-rw-r--r-- 1 pi   pi      405 Jul 11 08:15 S_LightSensor1.xml
-rw-r--r-- 1 pi   pi      221 Jul 20 16:23 S_RAZB_UNK.xml
-rw-r--r-- 1 pi   pi      714 Jul 20 16:23 S_RAZB.xml
-rw-r--r-- 1 pi   pi     1445 Jul 11 08:15 S_SwitchPower1.xml
-rw-r--r-- 1 pi   pi     1523 Mar  7 03:15 startup_example.lua
-rw-r--r-- 1 pi   pi      581 Jul  9 17:36 startup.lua
-rw-r--r-- 1 pi   pi      243 Jul  9 17:26 S_VeraBridge.xml
-rw-r--r-- 1 pi   pi    58565 Jul 20 17:48 user_data.json

[quote=“amg0, post:53, topic:192902”][quote=“CudaNet, post:51, topic:192902”]Since I have the RaZberry board running on a test rPi linked to the Aeotec 6 in 1. If either AK or Amg0 is interested, I can certainly share this device via Weaved. This might be easier to add support for devices. I can also add the z.way server port if needed. I subscribe to a 2 hour window time and 2 concurrent connections. If more time/sessions are needed then I’d be happy to increase the service.

As always, just let me know how I can help.[/quote]

I have put on Github master branch a new version. this requires to delete your existing device ( not necessary to include; exclude in zwave, just delete the device and let openluup/razberry plugin recreate them )

changes:

-changes logic to create multi instance devices and device with multisensor cmdclass
-openluup device altid contains “zwid_instanceid_cmdcls_idx” or “zwid_instanceid” according to the situation
-ZW_Generic_Specific variable introduced to hold device instance generic and specific type value.
-ZW_PID variable to include manuf, product type and product ID
-Unk device has a IconCode variable ( which will leverage & display zway icon )
-ALtUI must also be upgraded to latest vrsion in github master branch
-use D_LightSensor1

Help needed

  • testing some devices
  • reporting issues with screen shots and http://:8083/ZWave.zway/Data/0 result[/quote]

And logs attached. AltUI build 1807 and RaZ v0.08beta.

ok, I checked in in Github a “v0.09beta” version which should fix that

Updated.

What do I need to do in order to use this to incorporate my Razberry controller into my Vera network? Right now, the only thing I’m using the RPi Z-Wave controller for is the ForecastIO weather module and a virtual rain sensor that operates off of the Forecast IO module. Are there any modules like this for OpenLuup?

[quote=“CudaNet, post:58, topic:192902”]Updated.

Looks good, so do you confirm it works now?