<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.mios.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.mios.com/index.php?action=history&amp;feed=atom&amp;title=Scene_Syntax</id>
		<title>Scene Syntax - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.mios.com/index.php?action=history&amp;feed=atom&amp;title=Scene_Syntax"/>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php?title=Scene_Syntax&amp;action=history"/>
		<updated>2026-04-28T13:55:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.8</generator>

	<entry>
		<id>http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3676&amp;oldid=prev</id>
		<title>Henk at 09:44, 18 September 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3676&amp;oldid=prev"/>
				<updated>2011-09-18T09:44:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:44, 18 September 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [[Luup_Requests#scene]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [[Luup_Requests#scene]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key micasaverde_wiki:diff:version:1.11a:oldid:3431:newid:3676 --&gt;
&lt;/table&gt;</summary>
		<author><name>Henk</name></author>	</entry>

	<entry>
		<id>http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3431&amp;oldid=prev</id>
		<title>Micasaverde at 23:40, 6 August 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3431&amp;oldid=prev"/>
				<updated>2011-08-06T23:40:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:40, 6 August 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [Luup_Requests#scene]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;[Luup_Requests#scene&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The Json should include a name, and optionally a room.&amp;#160; If it includes an &amp;quot;id&amp;quot; then the existing scene with that id will be overwritten.&amp;#160; If id is blank or invalid a new scene is added.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The Json should include a name, and optionally a room.&amp;#160; If it includes an &amp;quot;id&amp;quot; then the existing scene with that id will be overwritten.&amp;#160; If id is blank or invalid a new scene is added.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key micasaverde_wiki:diff:version:1.11a:oldid:3428:newid:3431 --&gt;
&lt;/table&gt;</summary>
		<author><name>Micasaverde</name></author>	</entry>

	<entry>
		<id>http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3428&amp;oldid=prev</id>
		<title>Micasaverde: New page: If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [Luup_Requests#scene]  The Json should inc...</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php?title=Scene_Syntax&amp;diff=3428&amp;oldid=prev"/>
				<updated>2011-08-06T23:37:14Z</updated>
		
		<summary type="html">&lt;p&gt;New page: If you&amp;#039;re creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [Luup_Requests#scene]  The Json should inc...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you're creating your own user interface you can create a scene using JSON and send it to the engine using the scene request as described here: [Luup_Requests#scene]&lt;br /&gt;
&lt;br /&gt;
The Json should include a name, and optionally a room.  If it includes an &amp;quot;id&amp;quot; then the existing scene with that id will be overwritten.  If id is blank or invalid a new scene is added.  &lt;br /&gt;
&lt;br /&gt;
&amp;quot;groups&amp;quot; has all the actions, where all the actions are grouped into a json object which has a given delay.  In the example below 2 lights and a thermostat are controlled immediately when the scene is executed (ie delay=0), and then a light is turned off after 10 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;triggers&amp;quot; has the events or triggers that will cause the scene to run.  &amp;quot;template&amp;quot; refers to the &amp;quot;eventList&amp;quot; in the json file for the given device type.  In this example the trigger &amp;quot;temp_over_80&amp;quot; has a trigger for a thermostat (device #79), so in D_HVAC_ZoneThermostat1.json, the eventList with ID 2 is labelled &amp;quot;Ambient temperature goes above&amp;quot; and it monitors the service &amp;quot;urn:upnp-org:serviceId:TemperatureSensor1&amp;quot; and the &amp;quot;argumentList&amp;quot; for that template monitors the variable &amp;quot;CurrentTemperature&amp;quot; the &amp;quot;comparisson&amp;quot;: &amp;quot;&amp;gt;&amp;quot; means that the value of the variable must be &amp;gt; than the value in the scene, so the scene will run when the temp goes over 80.  For the trigger &amp;quot;sensor_trip&amp;quot; the device is a motion sensor so in D_MotionSensor1.json template #1 is &amp;quot;A sensor (door/window/motion/etc.) is tripped&amp;quot; and monitors &amp;quot;Tripped&amp;quot; and occurs when Tripped is 1.  For the &amp;quot;leak_alarm&amp;quot; in D_TempLeakSensor1.json template #5 shows the trigger occurs when urn:micasaverde-com:serviceId:HaDevice1 variable sl_Alarm = WATER_LEAK, and there are no user defined arguments.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;timers&amp;quot; has the timers that will cause the scene to run.  The types are 1=interval, 2=day of week, 3=day of month, 4=absolute.  For type 2 the field &amp;quot;days_of_week&amp;quot; indicates which days of the week (Sunday=0), and for type 3 &amp;quot;days_of_month&amp;quot; is a comma-separated list of the days of the month.  In both cases &amp;quot;time&amp;quot; is the time.  If the time has a T or R at the end it means the time is relative to sunset or sunrise, so -1:30:0R means 1hr 30 minutes before sunrise.  For type 1 the interval tag has an h or m for hours or minutes, so 1h means every 1 hour, and 30m means every 30 minutes.  For type 4 the time has the day and time.&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;Test Scene&amp;quot;,&lt;br /&gt;
    &amp;quot;groups&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;delay&amp;quot;: 0,&lt;br /&gt;
            &amp;quot;actions&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;device&amp;quot;: &amp;quot;8&amp;quot;,&lt;br /&gt;
                    &amp;quot;service&amp;quot;: &amp;quot;urn:upnp-org:serviceId:SwitchPower1&amp;quot;,&lt;br /&gt;
                    &amp;quot;action&amp;quot;: &amp;quot;SetTarget&amp;quot;,&lt;br /&gt;
                    &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                        {&lt;br /&gt;
                            &amp;quot;name&amp;quot;: &amp;quot;newTargetValue&amp;quot;,&lt;br /&gt;
                            &amp;quot;value&amp;quot;: &amp;quot;1&amp;quot;&lt;br /&gt;
                        }&lt;br /&gt;
                    ]&lt;br /&gt;
                },&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;device&amp;quot;: &amp;quot;9&amp;quot;,&lt;br /&gt;
                    &amp;quot;service&amp;quot;: &amp;quot;urn:upnp-org:serviceId:SwitchPower1&amp;quot;,&lt;br /&gt;
                    &amp;quot;action&amp;quot;: &amp;quot;SetTarget&amp;quot;,&lt;br /&gt;
                    &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                        {&lt;br /&gt;
                            &amp;quot;name&amp;quot;: &amp;quot;newTargetValue&amp;quot;,&lt;br /&gt;
                            &amp;quot;value&amp;quot;: &amp;quot;0&amp;quot;&lt;br /&gt;
                        }&lt;br /&gt;
                    ]&lt;br /&gt;
                },&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;device&amp;quot;: &amp;quot;79&amp;quot;,&lt;br /&gt;
                    &amp;quot;service&amp;quot;: &amp;quot;urn:upnp-org:serviceId:HVAC_UserOperatingMode1&amp;quot;,&lt;br /&gt;
                    &amp;quot;action&amp;quot;: &amp;quot;SetModeTarget&amp;quot;,&lt;br /&gt;
                    &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                        {&lt;br /&gt;
                            &amp;quot;name&amp;quot;: &amp;quot;NewModeTarget&amp;quot;,&lt;br /&gt;
                            &amp;quot;value&amp;quot;: &amp;quot;CoolOn&amp;quot;&lt;br /&gt;
                        }&lt;br /&gt;
                    ]&lt;br /&gt;
                },&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;device&amp;quot;: &amp;quot;79&amp;quot;,&lt;br /&gt;
                    &amp;quot;service&amp;quot;: &amp;quot;urn:upnp-org:serviceId:TemperatureSetpoint1_Heat&amp;quot;,&lt;br /&gt;
                    &amp;quot;action&amp;quot;: &amp;quot;SetCurrentSetpoint&amp;quot;,&lt;br /&gt;
                    &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                        {&lt;br /&gt;
                            &amp;quot;name&amp;quot;: &amp;quot;NewCurrentSetpoint&amp;quot;,&lt;br /&gt;
                            &amp;quot;value&amp;quot;: &amp;quot;28&amp;quot;&lt;br /&gt;
                        }&lt;br /&gt;
                    ]&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;delay&amp;quot;: 10,&lt;br /&gt;
            &amp;quot;actions&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;device&amp;quot;: &amp;quot;8&amp;quot;,&lt;br /&gt;
                    &amp;quot;service&amp;quot;: &amp;quot;urn:upnp-org:serviceId:SwitchPower1&amp;quot;,&lt;br /&gt;
                    &amp;quot;action&amp;quot;: &amp;quot;SetTarget&amp;quot;,&lt;br /&gt;
                    &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                        {&lt;br /&gt;
                            &amp;quot;name&amp;quot;: &amp;quot;newTargetValue&amp;quot;,&lt;br /&gt;
                            &amp;quot;value&amp;quot;: &amp;quot;0&amp;quot;&lt;br /&gt;
                        }&lt;br /&gt;
                    ]&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;triggers&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;temp_over_80&amp;quot;,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;template&amp;quot;: 2,&lt;br /&gt;
            &amp;quot;device&amp;quot;: 79,&lt;br /&gt;
            &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;id&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;value&amp;quot;: &amp;quot;80&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;sensor_trip&amp;quot;,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;template&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;device&amp;quot;: 67,&lt;br /&gt;
            &amp;quot;arguments&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;id&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;value&amp;quot;: &amp;quot;1&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;leak_alarm&amp;quot;,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;template&amp;quot;: 5,&lt;br /&gt;
            &amp;quot;device&amp;quot;: 31&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;timers&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;id&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;mon_wed&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;2&amp;quot;,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;days_of_week&amp;quot;: &amp;quot;1,3&amp;quot;,&lt;br /&gt;
            &amp;quot;time&amp;quot;: &amp;quot;4:9:0&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;id&amp;quot;: 2,&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;after_sunset&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;2&amp;quot;,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;days_of_week&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
            &amp;quot;time&amp;quot;: &amp;quot;+1:0:0T&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;id&amp;quot;: 3,&lt;br /&gt;
            &amp;quot;name&amp;quot;: &amp;quot;New schedule&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: 1,&lt;br /&gt;
            &amp;quot;interval&amp;quot;: &amp;quot;5h&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;id&amp;quot;: 20,&lt;br /&gt;
    &amp;quot;room&amp;quot;: 0&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Micasaverde</name></author>	</entry>

	</feed>