Difference between revisions of "Blinds"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "===Example of description in XML=== <syntaxhighlight lang="xml" line> <item addr="100:10" name="blinds" type="blinds" system="yes"> <linked addr="101:1"/> // is bound to...")
 
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===Example of description in XML===
+
<languages/>
 +
<translate>
 +
===Example of description in XML=== <!--T:1-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="100:10" name="blinds" type="blinds" system="yes">
 
<item addr="100:10" name="blinds" type="blinds" system="yes">
Line 14: Line 16:
 
vanes="blinds ID:SUBID" – for adding and control vanes
 
vanes="blinds ID:SUBID" – for adding and control vanes
  
===Device status (3 bytes)===
+
===Device status (3 bytes)=== <!--T:2-->
  
 +
<!--T:3-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 27: Line 30:
 
|}
 
|}
  
===Possible variants of setting the status===
+
===Possible variants of setting the status=== <!--T:4-->
 
====single-byte====
 
====single-byte====
  
Line 36: Line 39:
 
|0||0 – stop or 0%<br>1 – stop or 100%<br>2 – 0%<br>3 – 100%<br>4 – stop<br>5 – stop or reverse 0%/100%<br>8 – level +25 (+10%)<br>9 – level -25 (-10%)<br>0xFF – Change the status for the opposite one
 
|0||0 – stop or 0%<br>1 – stop or 100%<br>2 – 0%<br>3 – 100%<br>4 – stop<br>5 – stop or reverse 0%/100%<br>8 – level +25 (+10%)<br>9 – level -25 (-10%)<br>0xFF – Change the status for the opposite one
 
|}
 
|}
====2-bytes====
+
====2-bytes==== <!--T:5-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 45: Line 48:
 
|1||level (0-250)
 
|1||level (0-250)
 
|}
 
|}
 +
</translate>

Latest revision as of 14:59, 24 January 2022

Other languages:
English • ‎русский

Example of description in XML

1<item addr="100:10" name="blinds" type="blinds" system="yes">
2    <linked addr="101:1"/>  // is bound to the button with the address 101:1
3    <automation ……/>  // set the automation for this element
4</item>
1<item addr="100:10" name="Blinds" type="blinds" vanes="307:5">
2    <linked addr="101:1"/>  // is bound to the button with the address 101:1
3    <automation ……/>  // set the automation for this element
4</item>

vanes="blinds ID:SUBID" – for adding and control vanes

Device status (3 bytes)

Byte number description
0 Device status.
0 – closed
1 – open
2 – is closing
3 – is opening
4 – middle position
5 – unknown
1 Setpoint level
0..250
2 Current level
0..250

Possible variants of setting the status

single-byte

byte description
0 0 – stop or 0%
1 – stop or 100%
2 – 0%
3 – 100%
4 – stop
5 – stop or reverse 0%/100%
8 – level +25 (+10%)
9 – level -25 (-10%)
0xFF – Change the status for the opposite one

2-bytes

byte description
0 7 – direct value
8 – increase setpoint by value
9 – decrease setpoint by value
1 level (0-250)