How can I schedule modes on Vera Lite 1.7.318

Please help me to activate home & away modes based on the time of day and day of the week. Example

Away : Monday - Friday 0600 - 2100

Can users create their own modes?

I am not on UI7 yet. In the past, there was a ‘schedules’ tab within the Scene configuration. This is where schedules could be set within a scene.
Many of us use PLEG to manage the timed and triggered automation aspects of our Vera. Being able to use conditional logic in your scenes makes it more useful than adding a schedule to a scene.

[quote=“micasa638476, post:1, topic:182962”]Please help me to activate home & away modes based on the time of day and day of the week. Example
Away : Monday - Friday 0600 - 2100[/quote]

I think you need Luup to do this. You could create a scene at 0600, don’t give it any actions, but put Luup code like this into it. Similarly, make another scene at 2100.

It’s not quite what you want but it’s close.

Can users create their own modes?

No.

You can create a scene that runs every hour and contains the following code:

[code]local dt = os.date(“*t”)
local wday = tonumber(dt.wday)
local hour = tonumber(dt.hour)

if (wday~=1 and wday~=7) then
if (hour==6) then
luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=2 }, 0)
end
if (hour==21) then
luup.call_action(‘urn:micasaverde-com:serviceId:HomeAutomationGateway1’, ‘SetHouseMode’, { Mode=1 }, 0)
end
end[/code]

I do this with night mode goes on at 11:00pm, and off at around 6:00am. Just the one luup call, one scene to switch to night, and one to switch back to home. The scenes are set to not run in vacation mode.

Sent from my iPad using Tapatalk