Plugin has been unpublished by me. I don’t want to continue to work for such a company.
I created myself a plugin which creates a device with five string variables, and five string variables to name these variables. These variables can be read and written by luup code or in the device settings tab (advanced). The value of this ten variables is shown in the dashboard too.
As an example the plugin can be used to transfer variables in between scenes or as a configuration window to centralize settings for luup scenes or it could be used to show values of different devices in the dashboard. I use it to see directly in the UI which scene was last used and at what time, when doors were opened etc. I use it for luup logic too, in example I have a variable for one of my rooms which ?always? knows if lights were last turned on by motion(1) or manually(0), the scene which should turn of lights automatically (only when they were turned on automatically) therefore can check if lights were manually or automatically turned on. Possibilities are endless, anything is possible.
To integrate with scenes luup code has to be used at the moment (Variables 1-5):
[code]luup.variable_set(“urn:upnp-org:serviceId:VContainer1”,“VariableName1”,“Variable1”,lul_device)
luup.variable_set(“urn:upnp-org:serviceId:VContainer1”,“Variable1”,“value”,lul_device)
luup.variable_get(“urn:upnp-org:serviceId:VContainer1”,“VariableName2”, lul_device)
luup.variable_get(“urn:upnp-org:serviceId:VContainer1”,“Variable2”, lul_device)
[/code]
Setting Values by http: http://forum.micasaverde.com/index.php/topic,9022.msg86354.html#msg86354
A function makes getting and setting variables much easier: http://forum.micasaverde.com/index.php/topic,9022.msg82836.html#msg82836
Installation:
This works on UI4 and UI5, but on UI4 has to be installed manually (http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins).
Through the App Store (UI5):
http://apps.mios.com/plugin.php?id=1458
Manually (UI4):
? Download the four files from the links below (newest version is recommended).
? Upload them to your vera (Apps=>Develop Apps=>Luup Files)
? Create a Device (Apps=>Develop Apps=>Create Device) and set ?D_VContainer.xml? as the Upnp Device Filename.
? Restart Lua Engine
Version History:
VERSION 1.0
http://apps.mios.com/download-plugin.php?PK_Version=3018
VERSION 1.1
http://forum.micasaverde.com/index.php/topic,9022.msg60420.html#msg60420
VERSION 1.2
http://forum.micasaverde.com/index.php/topic,9022.msg61402.html#msg61402
VERSION 1.3
http://forum.micasaverde.com/index.php/topic,9022.msg62472.html#msg62472
VERSION 1.4
http://forum.micasaverde.com/index.php/topic,9022.msg76193.html#msg76193
VERSION 1.5
http://forum.micasaverde.com/index.php/topic,9022.msg78844.html#msg78844
VERSION 1.6
http://forum.micasaverde.com/index.php?topic=9022.msg92542#msg92542
VERSION 1.7
http://forum.micasaverde.com/index.php/topic,9022.msg103071.html#msg103071
VERSION 1.8
http://forum.micasaverde.com/index.php/topic,9022.msg138136.html#msg138136
VERSION 1.9
http://forum.micasaverde.com/index.php/topic,9022.msg211805.html#msg211805