[quote=“shallowearth, post:2, topic:189742”]Put this one line of LUA code in your Scene that is triggered by the Alarm. Works like a charm. Copy and paste the line of code into your scene Lua field depeding on the mode you are trying to set:
To Set Mode Night add
luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=3 }, 0)
To Set Mode Home add
luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=1 }, 0)
To set Mode Away add
luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=2 }, 0)[/quote]
Thanks for the code for setting the house modes…
Here is one question that I’m figuring right now… How can I add an additional delay (on top of the delay that’s part of the changing scenes)?
My thought is this. At the top of my stairs, I have a 7 button Z-Wave controller that is hard wired. The big bottom button is programmed to a scene called “Bed Time”. In a past life when I used Homeseer, this was fairly straight forward, but with Vera, I’m still going thru the learning curve. During “Bed Time” I turn on x, y and z lights in my master bedroom and bathroom, I delay 10 minutes (time to brush the teeth and do the nightly routine and crawl into bed), after 10 minutes, my wife and I are in bed and then the lights turn off…
How can I add the 10 minute delay before the luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=3 }, 0)
I tried different delay functions and I keep getting lua errors.
thanks!
Stephen