We have moved at community.getvera.com

Author Topic: Motion Detector Programming Knowledge Needed  (Read 2038 times)

Offline jaquade

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Motion Detector Programming Knowledge Needed
« on: May 29, 2010, 11:23:33 am »
Any idea on using Vera how to make my HomePro motion detector only
work during a specific period of time....

I want the motion detector to only turn on a group of lights 1 hour
after dusk for 3 hours....

I can't seem to build that into the timer portion of the event.

Offline mikeholczer

  • Sr. Member
  • ****
  • Posts: 413
  • Karma: +0/-0
Re: Motion Detector Programming Knowledge Needed
« Reply #1 on: May 29, 2010, 02:28:12 pm »
You will need to write a few lines of Lua into the Luup Event section to check the time and return false if the current time is outside of the window you want it enabled. Respond back if you need help with that.

Offline woodsby

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 466
  • Karma: +1/-0
Re: Motion Detector Programming Knowledge Needed
« Reply #2 on: May 29, 2010, 03:02:27 pm »
Couldn't you just set up a scene to run at 1 hour after dusk to arm your motion sensor, another scene to disarm the motion sensor 4 hours after dusk, then just set up the 3rd scene to turn on the light when an armed sensor is tripped?  This would avoid luup for people who don't want to program.
Vera1 (1.1142), Vera2 (1.1182), VRI06 (12), VRS15 (3), VRS05 (2), VRF01 (2), VRCS4 (2), ZRW113, ZRF113 (2), 45602, 45603, TZMT400 (2), FE599 (2), 99100, Thinkstick, Harmony 890Pro (2), Harmony RF Extender, Nevo S70, Nevo NC-50, Minimote, SQ Remote, SQ Blaster, EtherRain-8, Cliste ActiveRFID, TED5002

Offline mikeholczer

  • Sr. Member
  • ****
  • Posts: 413
  • Karma: +0/-0
Re: Motion Detector Programming Knowledge Needed
« Reply #3 on: May 29, 2010, 03:11:04 pm »
Sorry, I don't have any motion sensors, so I forgot that they had an arm state.