Author Topic: sensor to turn off room when i leave the room  (Read 486 times)

Offline vas5150

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +2/-0
sensor to turn off room when i leave the room
« on: April 11, 2018, 08:46:10 pm »
HI,

I am looking at putting sensors in some of the rooms in my house so that when i enter the room it turns on all the devices in the room and then turns them all off when i leave.

my issue is that i can set a scene to shut down room when no movement is detected but once no movement is detected (even if i add a delay) it will turn off the room . I want to be able to reset the scene once movement is detected again so that the room wont shut down from previously not detecting motion while i am in there.

Hope that makes sense!!

Offline jeubanks

  • Full Member
  • ***
  • Posts: 226
  • Karma: +6/-1
Re: sensor to turn off room when i leave the room
« Reply #1 on: April 11, 2018, 09:46:26 pm »
Step 1:  Install PLEG
Step 2:  Learn PLEG
Step 3:  Asks lots of PLEG questions and keep learning

You can't do what you want with vera scenes.  It will require PLEG or custom lua and possibly both.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +31/-32
Re: sensor to turn off room when i leave the room
« Reply #2 on: April 11, 2018, 10:06:03 pm »
I second PLEG. With a timer, movement can reset a timer so after, let's say 10 minutes of no movement, the room is turned off. Any movement within 10 minutes would reset the timer. Just don't take a nap in the room.
Vera 3, 1.7.1030, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, Weatherunderground, LB60Z-1 bulb

Offline jeubanks

  • Full Member
  • ***
  • Posts: 226
  • Karma: +6/-1
Re: sensor to turn off room when i leave the room
« Reply #3 on: April 11, 2018, 10:29:24 pm »
Use multiple triggers.

Have multiple motion detectors and if the room has a door include a door sensor if you normally keep the door closed or open for specific time periods, bedroom, office, bathroom, etc.

The multiple motion sensors is to catch motion at different angles.  The door sensor is to act as the trigger for the room is "clear".  Such as my bathroom has motion to turn on the lights then to turn off I use the motion sensor AND the door sensor both must be true before the lights turn off and in my case it's NO motion Door OPEN.  Made the wife and kids very un-happy with the lights turning off because of no motion.

Offline rigpapa

  • Sr. Member
  • ****
  • Posts: 462
  • Karma: +65/-0
Re: sensor to turn off room when i leave the room
« Reply #4 on: April 12, 2018, 02:46:48 pm »
DelayLight will also do this, and might be easier to bite off than PLEG. Its delay timers restart every time the sensors trip, deferring the off action. It also can work in conjunction with a door sensor, for example, to hold the lights on when the door is open, even if movement is not detected (very useful in garages, storage rooms, unfinished basements, attics, etc.).
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline jchin

  • Sr. Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: sensor to turn off room when i leave the room
« Reply #5 on: April 14, 2018, 11:17:59 am »
I did something using LUUP code.

Motion sensor detects motion triggers scene.  Scene Luup code waits 90 seconds and check lux reading from sensor.  If lights on, set heat to specific temperature.

Motion sensor no longer detects motion, triggers scene.  Luup code in scene waits 90 seconds, if lights are off, turn down the heat, otherwise do nothing.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5631
  • Karma: +156/-377
Re: sensor to turn off room when i leave the room
« Reply #6 on: April 15, 2018, 12:36:31 pm »
Made the wife and kids very un-happy with the lights turning off because of no motion.

And this is why I don't use motions to turn off lights much.

In rooms like hallways, closets and such usually work fine. But bedrooms, living rooms, dinning room or office don't work for me either due to lack off movement when your still in the room. Sitting or laying on a couch watching tv, reading a book, on the cell phone or tablet (and more) all look like no movement to the motion detector. I never used any but maybe you need to research "occupancy sensor vs. motion sensor".

Offline akbooer

  • Master Member
  • *******
  • Posts: 5947
  • Karma: +257/-69
  • "Less is more"
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline vas5150

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +2/-0
Re: sensor to turn off room when i leave the room
« Reply #8 on: April 15, 2018, 10:08:35 pm »
Cheers for the replies.

I am testing out this method.

when no motion detected start Timer. If motion detected cancel timer. If timer counts down to specified time shut down lights. if motion detected turn on lights