Hello,
I have posted a more specific version of my question here: [url=http://forum.micasaverde.com/index.php/topic,37181.0.html]http://forum.micasaverde.com/index.php/topic,37181.0.html[/url], but since it didn’t get any answer I suspected that I have written it in the wrong place. Below, I try to paraphrase the problem in a more general way. Any help/feedback is much appreciated.
We have added Nodon soft remote scene controller (as a generic device) to Vera Edge with UI7. Based on a tutorial, I have to add a piece of luup code so that the device supports 16 distinct scenarios (generated by 4 physical buttons each supporting 4 types of press). The reference luup code refers to the variable LastSceneID, which I see in the Device > Control > Advanced tab. I have verified that the value of LastSceneID changes according to the way each button is pressed.
The problem is that LastSceneID is not listed in the S_SceneController1 service file, which is associated with this device. When I try to read its value,
local scenarioID = luup.variable_get("urn:micasaverdecom:serviceId:SceneController1","LastSceneID", 9)
the value returned by scenarioID is nil. Is this because LastSceneID is not listed in service file? How do you justify that a variable is shown in Advanced tab of device, but is missing in the service file?
Thank you very much. I am still very new to luup and Vera, and really want to learn from others’ experience
Mona