<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.webcore.co/history/Creating_your_first_piston?feed=atom</id>
		<title>Creating your first piston - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.webcore.co/history/Creating_your_first_piston?feed=atom"/>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/history/Creating_your_first_piston"/>
		<updated>2026-05-15T13:34:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.webcore.co/index.php?title=Creating_your_first_piston&amp;diff=666&amp;oldid=prev</id>
		<title>Ipaterson: Copied from homepage</title>
		<link rel="alternate" type="text/html" href="https://wiki.webcore.co/index.php?title=Creating_your_first_piston&amp;diff=666&amp;oldid=prev"/>
				<updated>2017-11-12T12:37:05Z</updated>
		
		<summary type="html">&lt;p&gt;Copied from homepage&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Now that you have webCoRE installed and up to date, lets go ahead and walk through the steps to make a simple piston that will turn on a light switch when motion is active.  From the dashboard.webcore.co main page just follow these easy steps.&lt;br /&gt;
&lt;br /&gt;
#We are going to click on '''Add a new piston''' in the upper left corner of the screen &lt;br /&gt;
#:[[file:Addnewpiston.png]]&lt;br /&gt;
#A dialog box will open and we want to choose '''Create a blank piston'''&lt;br /&gt;
#:[[file:Createblank.png|500px]]&lt;br /&gt;
#*Which will then open this dialog box&lt;br /&gt;
#:[[file:Blankpiston.png|400px]] &lt;br /&gt;
#Now simply fill in the Author (that is you!) and we will name this '''My First Piston - Motion Lights'''.  We will also enable Automatic Backup by clicking on the no to change it to yes&lt;br /&gt;
#:[[file:Blankpistonedited.png|400px]]&lt;br /&gt;
#After clicking create we are brought to the Piston Editor/Script View. Click on '''Add a new statement'''&lt;br /&gt;
#:[[file:Addstatement.png|600px]]&lt;br /&gt;
#Click on '''Add an if'''&lt;br /&gt;
#:[[file:Addanif.png|400px]]&lt;br /&gt;
#Click on '''Add a condition'''&lt;br /&gt;
#:[[file:addcondition.png|400px]]&lt;br /&gt;
#Now we are going to select a motion sensor&lt;br /&gt;
#The default is '''Physical Device(s)''', now click the middle box that says '''Nothing Selected''' and choose a motion sensor then select '''motion''' as the attribute&lt;br /&gt;
#For the comparison select '''changes to''' under the '''Triggers''' category&lt;br /&gt;
#Finally select '''active''' if not already selected and click '''Add'''&lt;br /&gt;
#:[[file:Adddevice.png|400px]]&lt;br /&gt;
#Now that we have our trigger, lets add an action by clicking on '''Add a new statement''' below the '''then'''&lt;br /&gt;
#:[[file:Newcondition.png|600px]]&lt;br /&gt;
#This time we want to do something so select '''Add an action'''&lt;br /&gt;
#:[[file:Addaction.png|400px]]&lt;br /&gt;
#Here you can search for the device to limit the drop down or scroll down to find it.  Select the '''Switch/bulb''' you want to control&lt;br /&gt;
#:[[file:Selectdevice.png|400px]]&lt;br /&gt;
#Now we are going to select the command we want to use.  Find '''Set Level...''' in the list and choose it.&lt;br /&gt;
#:[[file:Addtask.png|400px]]&lt;br /&gt;
#Before we add this task we want to set the level to '''100''' then click add&lt;br /&gt;
#:[[file:Addtasksetlevel.png|400px]]&lt;br /&gt;
#We have our simple motion lights piston all set up. Go ahead and finalize it by clicking save in the upper right corner.&lt;br /&gt;
#:[[file:Finished.png|600px]]&lt;br /&gt;
#This brings us to the overview page.  This shows a vast amount of information about this individual piston. &lt;br /&gt;
#:[[file:Myfirstpistonoverview.png|600px]]&lt;br /&gt;
&lt;br /&gt;
All that is left to do now is test your piston by walking past your motion sensor.  Your light should turn on to 100% brightness.  However due to the simplicity of this example there is no control to turn it off.  But this was just a simple overview of creating a piston.  Hope this helps get you started!&lt;/div&gt;</summary>
		<author><name>Ipaterson</name></author>	</entry>

	</feed>