Difference between revisions of "WHO=0 - Scenarios"

From piMyHome Project
Jump to navigation Jump to search
(Created page with " == Standard Message == In the table above, we learned a Standard Message consists of <code>''' *WHO*WHAT*WHERE## ''' </code>. * <tt>'''WHO'''</tt> identifies the service, su...")
 
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
====What is a scenario?====
 +
A scenario is a list of simple commands, stored in a scenario device like '''F420''' (max. 16 scenarios) or '''IR 3456''' (max. 20 scenarios). More and smarter scenarios can be stored in a scenario device like '''MH200''' or the newer model '''MH200N'''. These smart scenario devices support event- and time-driven scenarios, even with IF-THEN-ELSE clauses.
  
== Standard Message ==
+
====Examples====
 +
Scenarios are launched in a similar way like lighting commands:
 +
<pre>
 +
*0*5*89##        launch scenario #5, connected to address 89
 +
*0*9*48#4#02##  launch scenario #9, connected to address 48 on interface 2
 +
</pre>
  
In the table above, we learned a Standard Message consists of <code>''' *WHO*WHAT*WHERE## ''' </code>.
+
Since a scenario is just a list of commands, they don't have a status and therefore you can't do a status request on a scenario.
* <tt>'''WHO'''</tt> identifies the service, such as scenario, light or automation
+
 
* <tt>'''WHAT'''</tt> is the action to be performed, such as light ON/OFF or dimmer, shutter up/down etc.
+
==Programming a Scenario==
* <tt>'''WHERE'''</tt> identifies the object, which can be an area, group, an environment, or just a single light or shutter etc. A <tt>'''WHERE'''</tt> field can also come with optional parameters, separated by a hash ('''#'''), e.g. <tt>'''*WHERE#PAR1#PAR2#...#PARn'''</tt>
+
To program a scenario, it has to be locked first and after programming it has to be unlocked. Instead of fiddling with OWN message to manage F420 scenarios, you should use a tool like [[Bticino_Hard-_and_Software#Third_Party_Software|ScenarX]]
 +
 
 +
== WHAT Table ==
 +
{| class="wikitable"  style="float:left;"
 +
! style="text-align:left;"| WHAT (F420)
 +
! style="text-align:left;"| Description
 +
|-
 +
|1..16
 +
|Scenario 1 to 16
 +
|-
 +
|40#x
 +
|Start recording scenario x
 +
|-
 +
|41#x
 +
|Stop recording scenario x
 +
|-
 +
|42
 +
|Delete all scenarios
 +
|-
 +
|42#x
 +
|Delete scenario x
 +
|-
 +
|43
 +
|Lock scenario module
 +
|-
 +
|44
 +
|Unlock scenario module
 +
|-
 +
|45
 +
|Scenario module not available
 +
|-
 +
|46
 +
|Memory full
 +
|}
 +
{| class="wikitable"  style="float:left; margin-left: 10px;"
 +
! style="text-align:left;"| WHAT (IR 3456)
 +
! style="text-align:left;"| Description
 +
|-
 +
|1..20
 +
|Scenario 1 to 20
 +
|}
 +
{| class="wikitable" style="float:left; margin-left: 10px;"
 +
! style="text-align:left;"| WHERE
 +
! style="text-align:left;"| Address
 +
|-
 +
|01..99
 +
|Control Panel 01 to 99
 +
|}
 +
 
 +
{| style="width:100%; border:1px solid #EEEEEE; background-color:#FFFFCC"
 +
|style="text-align:left;"|[[OWN_OpenWebNet_Language_Reference#WHO_Table|WHO Table]]
 +
|style="text-align:right;"|[[WHO=1 - Lighting]]
 +
|}

Latest revision as of 22:44, 21 November 2014

What is a scenario?

A scenario is a list of simple commands, stored in a scenario device like F420 (max. 16 scenarios) or IR 3456 (max. 20 scenarios). More and smarter scenarios can be stored in a scenario device like MH200 or the newer model MH200N. These smart scenario devices support event- and time-driven scenarios, even with IF-THEN-ELSE clauses.

Examples

Scenarios are launched in a similar way like lighting commands:

*0*5*89##        launch scenario #5, connected to address 89
*0*9*48#4#02##   launch scenario #9, connected to address 48 on interface 2

Since a scenario is just a list of commands, they don't have a status and therefore you can't do a status request on a scenario.

Programming a Scenario

To program a scenario, it has to be locked first and after programming it has to be unlocked. Instead of fiddling with OWN message to manage F420 scenarios, you should use a tool like ScenarX

WHAT Table

WHAT (F420) Description
1..16 Scenario 1 to 16
40#x Start recording scenario x
41#x Stop recording scenario x
42 Delete all scenarios
42#x Delete scenario x
43 Lock scenario module
44 Unlock scenario module
45 Scenario module not available
46 Memory full
WHAT (IR 3456) Description
1..20 Scenario 1 to 20
WHERE Address
01..99 Control Panel 01 to 99
WHO Table WHO=1 - Lighting