Difference between revisions of "WHO=1 - Lighting"

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...")
 
Line 6: Line 6:
 
* <tt>'''WHAT'''</tt> is the action to be performed, such as light ON/OFF or dimmer, shutter up/down etc.
 
* <tt>'''WHAT'''</tt> is the action to be performed, such as light ON/OFF or dimmer, shutter up/down etc.
 
* <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>
 
* <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>
 +
 +
== The WHAT Table ==
 +
'''<pre>
 +
Value  Description
 +
------------------------------------
 +
    0  Turn off
 +
  0#x  Turn off at x speed for step
 +
    1  Turn on
 +
  1#x  Turn on at x speed for step
 +
    2  20%
 +
    3  30%
 +
    4  40%
 +
    5  50%
 +
    6  60%
 +
    7  70%
 +
    8  80%
 +
    9  90%
 +
    10  100%
 +
    11  ON timed 1 Min
 +
    12  ON timed 2 Min
 +
    13  ON timed 3 Min
 +
    14  ON timed 4 Min
 +
    15  ON timed 5 Min
 +
    16  ON timed 15 Min
 +
    17  ON timed 30 Min
 +
    18  ON timed 0.5 Min
 +
    20  Blinking on 0.5 sec
 +
    21  Blinking on 1 sec
 +
    22  Blinking on 1.5 sec
 +
    23  Blinking on 2 sec
 +
    24  Blinking on 2.5 sec
 +
    25  Blinking on 3 sec
 +
    26  Blinking on 3.5 sec
 +
    27  Blinking on 4 sec
 +
    28  Blinking on 4.5 sec
 +
    29  Blinking on 5 sec
 +
    30  Up one level
 +
30#x#y  Up of x levels at y speed for steep
 +
    31  Down one level
 +
31#x#y  Down of x levels at y speed for step1000
 +
        It accepts a parameter that is the value of what table
 +
</pre>'''

Revision as of 19:15, 15 November 2014

Standard Message

In the table above, we learned a Standard Message consists of *WHO*WHAT*WHERE## .

  • WHO identifies the service, such as scenario, light or automation
  • WHAT is the action to be performed, such as light ON/OFF or dimmer, shutter up/down etc.
  • WHERE identifies the object, which can be an area, group, an environment, or just a single light or shutter etc. A WHERE field can also come with optional parameters, separated by a hash (#), e.g. *WHERE#PAR1#PAR2#...#PARn

The WHAT Table

 Value  Description
------------------------------------ 
     0  Turn off
   0#x  Turn off at x speed for step
     1  Turn on
   1#x  Turn on at x speed for step
     2  20%
     3  30%
     4  40%
     5  50%
     6  60%
     7  70%
     8  80%
     9  90%
    10  100%
    11  ON timed 1 Min
    12  ON timed 2 Min
    13  ON timed 3 Min
    14  ON timed 4 Min
    15  ON timed 5 Min
    16  ON timed 15 Min
    17  ON timed 30 Min
    18  ON timed 0.5 Min
    20  Blinking on 0.5 sec
    21  Blinking on 1 sec
    22  Blinking on 1.5 sec
    23  Blinking on 2 sec
    24  Blinking on 2.5 sec
    25  Blinking on 3 sec
    26  Blinking on 3.5 sec
    27  Blinking on 4 sec
    28  Blinking on 4.5 sec
    29  Blinking on 5 sec
    30  Up one level
30#x#y  Up of x levels at y speed for steep
    31  Down one level
31#x#y  Down of x levels at y speed for step1000 
        It accepts a parameter that is the value of what table