Difference between revisions of "Samples"
From webCoRE Wiki - Web-enabled Community's own Rule Engine
(→Motion Based) |
(→Motion Based) |
||
Line 9: | Line 9: | ||
*'''Complex Motion Piston''' | *'''Complex Motion Piston''' | ||
::This piston will turn on a light with motion and off after 2 minutes of no motion. <code>p3rz7</code> | ::This piston will turn on a light with motion and off after 2 minutes of no motion. <code>p3rz7</code> | ||
− | ::[[File | + | ::[[File-advancedmotionv1.png]] |
*'''Advanced Motion Piston''' | *'''Advanced Motion Piston''' | ||
::This piston will turn on a light with motion and off after 5 minutes of no motion. But if user switches the light on it will not be turned off by motion, instead user will need to turn if off. If motion turned on the light and you want it to stay on till you turn it off, just switch the light off and on <code>edsh2</code> | ::This piston will turn on a light with motion and off after 5 minutes of no motion. But if user switches the light on it will not be turned off by motion, instead user will need to turn if off. If motion turned on the light and you want it to stay on till you turn it off, just switch the light off and on <code>edsh2</code> |
Revision as of 05:21, 22 July 2017
This is an ongoing library of examples so please let me know what else you would like to see on here. Please get a hold of @c1arkbar on the ST forums if you would like to see anything added to this page.
Simple Pistons
These are going to be pretty basic beginner level pistons.
Motion Based
- Simple Motion Piston
- Complex Motion Piston
- This piston will turn on a light with motion and off after 2 minutes of no motion.
p3rz7
- File-advancedmotionv1.png
- This piston will turn on a light with motion and off after 2 minutes of no motion.
- Advanced Motion Piston
- This piston will turn on a light with motion and off after 5 minutes of no motion. But if user switches the light on it will not be turned off by motion, instead user will need to turn if off. If motion turned on the light and you want it to stay on till you turn it off, just switch the light off and on
edsh2
- This piston will turn on a light with motion and off after 5 minutes of no motion. But if user switches the light on it will not be turned off by motion, instead user will need to turn if off. If motion turned on the light and you want it to stay on till you turn it off, just switch the light off and on
Time Based
- Happens At (with offset)
- Time Between
Misc
- Mirrored Switch
- Weather
Advanced Pistons
@c1arkbar
- House Scheduler
- This is one of two pistons that controls my home's mode and SHM. This is time based with presence as additional conditions. I currently have 7 modes for my house. Away - (Dawn/Day/Night), Home - (Dawn/Day/Night) and Sleep. As the day progresses the mode will change based on the time and presence of myself and/or girlfriend.
1hj33x
- Magic Home
- This is one of two pistons that controls my home's mode and SHM. This piston works the opposite of the above in that the main driver of this piston is presence with time as additional conditions. When myself or my girlfriend get home, it checks to see who is arriving and which vehicle is missing for that person to determine which garage to open. After that it will assign the correct mode to the house and then send a push notification welcoming you home and letting you know that the garage is opening for you unless it is already open. Similarly when one of us leaves the house will give a goodbye message but if both of us are gone then it will alert the last person that all the lights have been turned off.
9ev6l