Hello. I have a few rooms with multiple motion sensors to control lighting. The problem I am running across is with the routine that turns off the lights. I have a routine setup to turn off the lights if there is no motion on the 2 sensors after XX minutes. The routine appears to use an OR statement instead of an AND statement for the sensors. So, currently, if either sensor doesn’t show movement for XX minutes, the lights turn off. I need some way of saying if BOTH motion sensors haven’t shown movement for XX minutes then turn off. Any suggestions on what I should use? I have the Smart Lighting app setup to turn on the lights when there is motion on either sensor, and for testing I enabled the option on the smart app to turn off the lights after XX minutes, but I am not sure if that will give me the results of both sensors or just a single sensor.
Mike Maxwell has an excellent smartapp which can combine multiple sensors into one zone and solves exactly this problem. Very popular.
I built this to solve a number of motion related issues.
–Reduction of false motion events in exterior applications (False Motion Reduction)
–Represent a group of detectors with a single virtual detector (Motion Aggregation)
–Enable a Motion Aggregation zone from various devices, switches, contacts ect (Triggered Activation)
This is a parent/child application (like Smart Lighting) where the motion zones are created and edited from the parent application.
When a new virtual zone is created, a virtual motion sensor is created for that zone. This virtual motion detector represents the states of the physical motion detectors that you configured for that zone.
You can then use that virtual zone device in any applications that accept motion devices.
Alternatively, you can use core, but the set up is more complex.
CoRE (now WebCore) is a very powerful community – created rules engine for SmartThings. It allows you to set up stacked conditionals like “If A then B but only while C and not if D.”
Setting it up can be quite complex, but there are many community members who will be glad to help you.
For example, here is a piston that one member created to notify him if the dog had already been fed twice that day and he picked up the dog bowl for a third time. He needed this because he has a large family and people didn’t always remember whose turn it was to feed the dog.
The original version of CoRE Has now been replaced by a new version, WebCoRE, which moves the data entry to a web interface. This allows for flexibility and an architecture that requires more memory than is av…
If you haven’t used custom code before, it’s pretty straightforward. Basically you will copy the author’s code and paste it into your own account. Here’s the FAQ for that:
So you’re new to SmartThings, you asked a question, and someone suggested “custom code” as an answer.
Or you were browsing the forums, and you found something that sounded like it would be perfect for what you wanted, but again, “uses custom code.”
What does that mean, how hard is it to do, and what’s the difference between a “SmartApp” and a “Device Type Handler”?
(Note: the official terminology has changed a couple of times. “device type handler,” “device handler,” “DTH,” and “device type” all mean the same thing, and you will find all these terms used in the forums.)
SECTION I: SMARTAPPS AND DEVICE HANDLERS: WHAT THEY ARE
SmartAPPS: Tiny Programs to decide what a specific device should do when, or to collect the information from a specific device
SmartApps, including the various f…
Awesome! Thanks so much. I’ll get this installed and give it a try. I appreciate the help.