We have moved at community.getvera.com

Author Topic: Holiday Timer Plugin  (Read 2149 times)

Offline smarttechnology

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
Holiday Timer Plugin
« on: October 09, 2011, 06:13:00 am »
Hi Guys, I have today tried to create a holiday timer to turn certain lights on and off during hours of darkness whilst I am away.

I would have thought this a simple task for Vera and had hoped there would have been a simple menu but I have ended up creating a multitude of differeing timers that I am having to manually fire off through the dashboard.

There has to be an easier way than this, is there a timer module for this that I am missing as this is what I thought Vera would excel at.



Offline DaveL17

  • Full Member
  • ***
  • Posts: 186
  • Karma: +0/-2
Re: Holiday Timer Plugin
« Reply #1 on: October 09, 2011, 07:15:11 am »
Simon - by holiday timer, I assume that you mean to while you are away on holiday (vacation here in the states.)  There has been much talk about vacation settings on the boards, and the best solution is to have "home" and "away" settings that you enable or disable through the dashboard.  To my knowledge, there has not been anything short of writing scripts to go beyond this basic control.

I would suggest searching for "vacation" and you'll see what I mean.

Offline JOD

  • Hero Member
  • *****
  • Posts: 1973
  • Karma: +4/-0
Re: Holiday Timer Plugin
« Reply #2 on: October 09, 2011, 12:51:34 pm »

There are several ways to accomplish what you want.
The simplest way (without code) is to create an on and an off scene and lots of timers to run on certain days and times.

Taking it a step further, add a Virtual Switch, add return luup.is_night() and a bit of code to monitor the Virtual Switches state and only run those scenes when you are away and it's night.

If you want to get creative, use the (GCS) Google Calendar Switch as your scheduler.

And the Emergency Light code (adjusting the flash rate) to turn certain lights On and Off without timers.

Add this code to a scene and only run that scene between set hours.

I'm sorry, my responses are limited. You must ask the right questions.