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.
[image]
[image]
[image]
Three coā¦
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.
[image]
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:
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTHās or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, Iām afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use āEdge Drivers,ā written in the LUA programming language. Hereās the official announcement on those:
The process for using a custom Edge Driver in the new ā¦
3 Likes