<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.webcore.co/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bangali</id>
		<title>webCoRE Wiki - Web-enabled Community's own Rule Engine - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.webcore.co/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bangali"/>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/Special:Contributions/Bangali"/>
		<updated>2026-05-20T08:26:52Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=630</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=630"/>
				<updated>2017-07-31T23:29:38Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
&lt;br /&gt;
== Motion Based EXCEPT When Manually Turned On ==&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston, what i use myself. More on the piston in the piston comments.&amp;lt;code&amp;gt;v78tz&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:People_Presence_Tiles_Example_Piston.png]]&lt;br /&gt;
&lt;br /&gt;
== Weather Tiles ==&lt;br /&gt;
*'''Weather Tiles''' &lt;br /&gt;
::The following two pistons show the weather forecast for the next few days &amp;amp; nights as well as the hourly forecast for the next 16 hours (conditions, temperature, and humidity). The background of the tiles changes based on average temperature (the colors and values for the coldest and warmest temperatures can be adjusted in the pistons - values between those two will be interpolated). The pistons can be easily changed to use °C instead of °F and use AM/PM rather the 24h time display by changing the respective boolean variables at the top of the piston.&lt;br /&gt;
::Here is what the tiles for those two pistons look like (during a somewhat boring forecast with not a lot of temperature variation):&lt;br /&gt;
::[[File:Weather_Tiles.png|800px]]&lt;br /&gt;
::Piston for the daily forecast tiles &amp;lt;code&amp;gt;8zf6&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:Weather_Daily.png|800px]]&lt;br /&gt;
::Piston for the hourly forecast tiles &amp;lt;code&amp;gt;nwbt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:Weather_Hourly.png|800px]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=609</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=609"/>
				<updated>2017-07-27T05:00:35Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence Tiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston, what i use myself. More on the piston in the piston comments.&amp;lt;code&amp;gt;v78tz&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:People_Presence_Tiles_Example_Piston.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=608</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=608"/>
				<updated>2017-07-27T04:59:24Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence Tiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston, what i use myself. More on the piston in the piston comments.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:People_Presence_Tiles_Example_Piston.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=607</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=607"/>
				<updated>2017-07-27T04:57:38Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence Tiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 7 needed global variables. First is integer @ChangeNotifyMinues which i have to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 6 other global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:People_Presence_Tiles_Example_Piston.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:People_Presence_Tiles_Example_Piston.png&amp;diff=606</id>
		<title>File:People Presence Tiles Example Piston.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:People_Presence_Tiles_Example_Piston.png&amp;diff=606"/>
				<updated>2017-07-27T04:50:38Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=593</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=593"/>
				<updated>2017-07-27T01:31:04Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence Tiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 7 needed global variables. First is integer @ChangeNotifyMinues which i have to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 6 other global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
::[[File:presencetilesicons.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=592</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=592"/>
				<updated>2017-07-27T01:30:17Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 5 needed global variables. First is integer @ChangeNotifyMinues which i had to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
::[[File:presencetilesicons.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetilesicons.png&amp;diff=591</id>
		<title>File:Presencetilesicons.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetilesicons.png&amp;diff=591"/>
				<updated>2017-07-26T21:44:13Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=590</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=590"/>
				<updated>2017-07-26T20:36:36Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 5 needed global variables. First is integer @ChangeNotifyMinues which i had to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=589</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=589"/>
				<updated>2017-07-26T20:35:42Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 5 needed global variables. First is integer @ChangeNotifyMinues which i had to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=588</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=588"/>
				<updated>2017-07-26T20:32:17Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 5 needed global variables. First is integer @ChangeNotifyMinues which i had to set to 5 mins. So for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=587</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=587"/>
				<updated>2017-07-26T20:30:18Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. There are 5 needed global variables. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=586</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=586"/>
				<updated>2017-07-26T20:29:16Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetiles4colors.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetiles4colors.png&amp;diff=585</id>
		<title>File:Presencetiles4colors.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetiles4colors.png&amp;diff=585"/>
				<updated>2017-07-26T20:28:27Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=584</id>
		<title>File:Presencetilescolors.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=584"/>
				<updated>2017-07-26T20:21:13Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: Bangali uploaded a new version of File:Presencetilescolors.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=583</id>
		<title>File:Presencetilescolors.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=583"/>
				<updated>2017-07-26T20:20:16Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: Bangali uploaded a new version of File:Presencetilescolors.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=582</id>
		<title>File:Presencetilescolors.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=582"/>
				<updated>2017-07-26T20:19:38Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: Bangali uploaded a new version of File:Presencetilescolors.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=581</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=581"/>
				<updated>2017-07-26T20:16:17Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
::[[File:presencetilescolors.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=580</id>
		<title>File:Presencetilescolors.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetilescolors.png&amp;diff=580"/>
				<updated>2017-07-26T20:13:24Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=579</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=579"/>
				<updated>2017-07-26T20:07:44Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;mrni&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=578</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=578"/>
				<updated>2017-07-26T20:07:02Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tiles ==&lt;br /&gt;
*'''Presence Tiles'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;yja5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Presencetiles.png&amp;diff=577</id>
		<title>File:Presencetiles.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Presencetiles.png&amp;diff=577"/>
				<updated>2017-07-26T20:05:50Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=576</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=576"/>
				<updated>2017-07-26T20:02:46Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Presence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence Tile ==&lt;br /&gt;
*'''Presence Tile'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;yja5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=575</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=575"/>
				<updated>2017-07-26T19:59:54Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Presence ==&lt;br /&gt;
*'''Presence Tile'''  &lt;br /&gt;
::Presence tiles piston and what i use myself. The 5 needed global variable. First is integer @ChangeNotifyMinues which i had to set to 5 mins. so for 5 minutes after a person arrives or leaves the tile color is different but brighter. Then there are 4 global variables for color which are included in the second image but you will also need to create.&amp;lt;code&amp;gt;yja5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:presencetiles.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=533</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=533"/>
				<updated>2017-07-22T07:15:26Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% only when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=532</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=532"/>
				<updated>2017-07-22T07:12:20Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. The isBetween check sets the light level to 100% when between 4am to 11pm otherwise to 10% when turned on by motion. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=531</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=531"/>
				<updated>2017-07-22T05:57:16Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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. note that while i use a light in this example it could be any device controlled by motion. &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=530</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=530"/>
				<updated>2017-07-22T05:56:08Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;'''hsv3h'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;'''p3rz7'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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 &amp;lt;code&amp;gt;'''edsh2'''&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Advancedmotionv1.png&amp;diff=528</id>
		<title>File:Advancedmotionv1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Advancedmotionv1.png&amp;diff=528"/>
				<updated>2017-07-22T05:24:45Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: Bangali moved page File:File-advancedmotionv1.png to File:Advancedmotionv1.png: consistency&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:File-advancedmotionv1.png&amp;diff=529</id>
		<title>File:File-advancedmotionv1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:File-advancedmotionv1.png&amp;diff=529"/>
				<updated>2017-07-22T05:24:45Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: Bangali moved page File:File-advancedmotionv1.png to File:Advancedmotionv1.png: consistency&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[File:Advancedmotionv1.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=527</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=527"/>
				<updated>2017-07-22T05:23:20Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;hsv3h&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;p3rz7&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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 &amp;lt;code&amp;gt;edsh2&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:advancedmotionv1.png]]&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=526</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=526"/>
				<updated>2017-07-22T05:22:40Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Simple Pistons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;hsv3h&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;p3rz7&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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 &amp;lt;code&amp;gt;edsh2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=525</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=525"/>
				<updated>2017-07-22T05:21:22Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;hsv3h&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;p3rz7&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File-advancedmotionv1.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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 &amp;lt;code&amp;gt;edsh2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=File:Advancedmotionv1.png&amp;diff=524</id>
		<title>File:Advancedmotionv1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=File:Advancedmotionv1.png&amp;diff=524"/>
				<updated>2017-07-22T05:20:40Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Samples&amp;diff=523</id>
		<title>Samples</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Samples&amp;diff=523"/>
				<updated>2017-07-22T05:16:29Z</updated>
		
		<summary type="html">&lt;p&gt;Bangali: /* Motion Based */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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 [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] &amp;lt;!-- anyone else who would like to add your name please do so --&amp;gt; on the ST forums if you would like to see anything added to this page.&lt;br /&gt;
&lt;br /&gt;
= Simple Pistons =&lt;br /&gt;
These are going to be pretty basic beginner level pistons.  &lt;br /&gt;
== Motion Based ==&lt;br /&gt;
*'''Simple Motion Piston'''&lt;br /&gt;
: When the motion sensor changes to active, a light will turn on. &amp;lt;code&amp;gt;hsv3h&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:simplemotion.png]]&lt;br /&gt;
*'''Complex Motion Piston'''  &lt;br /&gt;
::This piston will turn on a light with motion and off after 2 minutes of no motion. &amp;lt;code&amp;gt;p3rz7&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:complexmotionv2.png]]&lt;br /&gt;
*'''Advanced Motion Piston'''  &lt;br /&gt;
::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 &amp;lt;code&amp;gt;edsh2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Time Based ==&lt;br /&gt;
*'''Happens At (with offset)'''  &lt;br /&gt;
::This piston will execute at the specified time daily. Used an expression to fire this piston off 1 hour before sunset. &amp;lt;code&amp;gt;1citwt&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:happensat.png]]&lt;br /&gt;
*'''Time Between'''&lt;br /&gt;
::This piston will execute between the specified times. &amp;lt;code&amp;gt;x3pcd&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:timebetween.png]]&lt;br /&gt;
== Misc ==&lt;br /&gt;
*'''Mirrored Switch'''  &lt;br /&gt;
::This piston will mirror one switch to another. &amp;lt;code&amp;gt;1ai665&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:mirrorswitch.png]]&lt;br /&gt;
*'''Weather'''  &lt;br /&gt;
::This piston will change the color of a bulb to blue if weather is below freezing. &amp;lt;code&amp;gt;hmfm5&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:weather.png]]&lt;br /&gt;
=Advanced Pistons = &amp;lt;!-- If you would like to share some of your personal pistons then add them with the same format as mine below --&amp;gt;&lt;br /&gt;
== [https://community.smartthings.com/users/c1arkbar/activity @c1arkbar] ==&lt;br /&gt;
*'''House Scheduler'''  &lt;br /&gt;
: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.&amp;lt;code&amp;gt;1hj33x&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:myschedule.png]]&lt;br /&gt;
*'''Magic Home'''  &lt;br /&gt;
: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.  &amp;lt;code&amp;gt;9ev6l&amp;lt;/code&amp;gt;&lt;br /&gt;
::[[File:magichome.png]]&lt;/div&gt;</summary>
		<author><name>Bangali</name></author>	</entry>

	</feed>