I need to set a trigger to get notified after 2 sensors are triggered.
I have a toddler that has been getting up at night. I want to have a sensor in his room and one in the hallway. If I use just the hallway we trigger it when going to the kitchen. If I use just the bedroom then it triggers when he moves in his bed, so if I can say if these two sensors are triggered in x amount of time then do x. Can this be done?
I’ve been using:
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.
Not sure if it’s still working or not, but I use it to reduce false motion alerts for SHM.
Thanks. I’ll check it out. Does this have to install and run from a computer on the network like some work arounds? Seems like such a simple thing that is needed especially with using as security system. I did this kind of thing 25 years ago with simple dumb plc controller in school. Basic ifttt command
Let’s see - just as a mental exercise using Smart Lighting (though I’d normally use Stringify, and I know others would use WebCore - I just have fun creating with what’s there sometimes)
Create a virtual switch for Bedroom Sensor - Switch BS (using Virtual Device Creator - BS for Bedroom Sensor)
In Smart Lighting create automations -
If Bedroom Sensor senses motion then flip on Switch BS - turn off after x minutes of no motion (you decide - it’s like arming Toddler alarm - when does it disarm?)
if Hallway sensor senses motion then send you alert (or do what you want) ONLY if Switch BS is on (look under “more options”)
Worth a try for a quick solution
(And if it works I think it would even be local!)
(Of course it would fire if your toddler moved in bed and then you were in hallway, but that still is “both sensors within x time”).
[I just simplified after re-reading your use case]
Also, you could also just point/ direct the bedroom sensor so it is not affected by his moving around in bed but just by him heading to door - only trigger after a certain time.
As a smartapp, it will run in the SmartThings cloud.
You might find the two following FAQs helpful ( The topic title is a clickable link):
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…
The following may also be of interest:
(This is a wiki post: feel free to edit it or add to it as needed. Also, I can’t take any screenshots since I can’t use the app at this time due to its incompatibility with voiceover, so feel free to add screenshots where they would be helpful.)
At one point, one of the biggest advantages of using the SmartThings platform was the wide variety of devices that it supported. However, by the end of 2017 several competing platforms had caught up in that regard.
Where SmartThings still holds a significant advantage over some of the other low-cost home automation solutions is in the ability to really build really complex rules in a fairly simple manner. You won’t have to be a programmer, but you may need the help of other community members to get the logic constructed just right.
So how can…