Does anyone know where can I find information on how to rename a scene using Luup?
I have a scene that toggles a Yes/No variable in a VContainer that a PLEG uses to determine if an upstairs HVAC unit should be active. It would be very handy to indicate on the Vera Dashboard Scene dialog box the variable status in order to know if I want to “RUN” the scene. I would use a Scene name of “UpGuest Yes” or “UpGuest No” depending on the state of the variable.
Any help is greatly appreciated.
Don
I am not aware of a Luup command to do this but there is an http request. See [url=http://wiki.micasaverde.com/index.php/Luup_Requests#scene]http://wiki.micasaverde.com/index.php/Luup_Requests#scene[/url]. You may be able to make the request using luup.inet_wget(…) - see [url=http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_wget]http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_wget[/url].
Using the http request to change the scene name will cause the luup engine to reload. Keep that in mind especially for scenes running with delays.
Thanks Rex, Garret, for the quick response.
I have successfully used the http request to rename the scene, but because reloading the luup engine takes awhile I’ll probably just go without renaming the scene.
Not a big deal to not be able to do this – but it would be handy.
Maybe Instead of renaming the scene; have the luup turn on or off a virtual switch. This way it is readily visable