Archive for February, 2016
Vera Scene/Device Mode Manipulation
by Travis on Feb.11, 2016, under Tech Stuff
Anyone who’s into home automation with Vera devices, this is for you. Just filing this one under ‘random things I don’t want to forget’.
Use this Luup code in a scene to modify your home mode on an action. For instance, you come inside or wake up in the morning and disarm your alarm but want the home mode to change from Night, Away, etc to Home.
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = value}, 0)
Where Mode = value, value = 1 – Home, 2 – Away, 3 – Night, 4- Vacation
ex Scene Configuration:
Step 1 Trigger – ‘Vista Alarm is DISARMED’
Step 2 Device Actions – Leave Empty
Step 3 Finish the Scene – Use the provided code under the section ‘ Also, execute the following Luup code:’
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = 1}, 0)