Difference between revisions of "AC"

From Larnitech wiki page
Jump to navigation Jump to search
(Marked this version for translation)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
===Example of description in XML===
+
===Example of description in XML=== <!--T:1-->
  
 +
<!--T:2-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item type="AC" name="AC" addr="123:4"/>
 
<item type="AC" name="AC" addr="123:4"/>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Additional parameters===
+
===Additional parameters=== <!--T:3-->
  
 +
<!--T:4-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 39: Line 41:
 
<nowiki>*</nowiki> – required fields
 
<nowiki>*</nowiki> – required fields
  
===Device status upon status request (8 bytes)===
+
===Device status upon status request (8 bytes)=== <!--T:5-->
  
 +
<!--T:6-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 60: Line 63:
 
|}
 
|}
  
===Possible variants of setting the status===
+
===Possible variants of setting the status=== <!--T:7-->
 
====1-byte====
 
====1-byte====
 
{|class="wikitable"
 
{|class="wikitable"
Line 69: Line 72:
 
|}
 
|}
  
====2-bytes====
+
====2-bytes==== <!--T:8-->
  
 +
<!--T:9-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 80: Line 84:
 
|}
 
|}
  
====3-bytes====
+
====3-bytes==== <!--T:10-->
  
 +
<!--T:11-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 93: Line 98:
 
|}
 
|}
  
====4-bytes====
+
====4-bytes==== <!--T:12-->
  
 +
<!--T:13-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-

Revision as of 14:59, 24 January 2022

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

Example of description in XML

1<item type="AC" name="AC" addr="123:4"/>

Additional parameters

Name type and variety description default value
path* string Path to script -
script-id string script id from the description for interface -
t-min number temperature low value 16
t-delta number temperature range 16
modes bit mask Mask of operation modes (fan, cool, dry, heat, auto) 0x1F
fans bit mask Mask of airflow mode (auto, 1, 2, 3, 4, 5, silent mode) 0x1F
vane-ver bit mask Mask of vertical fins mode (auto, top, top-center, center, center-bottom, bottom, swing) 0x7E
vane-hor bit mask Mask of horizontal fins mode (left, left-center, center, center-right, right, sides (low angle), sides (high angle), from sides to center) 0
temperature-sensors list list of valve temperature sensors -
t-outside addr addr of outside temperature sensors -
t-outside-treshold value critically low temperature treshold -
t-outside-hyst value critically low temperature hysteresis -

* – required fields

Device status upon status request (8 bytes)

Byte number Bit number Description
0 0
3
4-7
On/Off
Autostate
Mode:
0 – fan
1 – cool
2 – dry
3 – heat
4 – auto
1-2 8-23 Temperature setpoint
3 24-27








28-31







Horizontal vanes:
0 – left
1 – left-center
2 – center
3 – center-right
4 – right
5 – sides (low angle)
6 – sides (high angle)
7 – from sides to center
Vertical vanes:
0 – auto
1 – top
2 – top-center
3 – center
4 – center-bottom
5 – bottom
6 – swing
4 32-35







Fan:
0 – auto
1 – 1st speed
2 – 2nd speed
3 – 3rd speed
4 – 4th speed
5 – 5th speed
6 – silent mode
5-6 40-55 Current temperature
7 56-63 Flags
8 64-71 Errors

Possible variants of setting the status

1-byte

Byte Description
0 0 – off
1 – on
0xFF – Change the status for the opposite one

2-bytes

Byte Description
0 0xf
1 1 – Target +1
17 – Mode +1 cyclic
33 – Fan +1 cyclic
49 – Horizontal vanes +1 cyclic
65 – Vertical vanes +1 cyclic

3-bytes

Byte Description
0 0xf
1 16 – Mode (value)
18 – Mode (step)
32 – Fan (value)
34 – Fan (step)
48 – Horizontal vanes (value)
50 – Horizontal vanes (step)
64 – Vertical vanes (value)
66 – Vertical vanes (step)
2 value – select value (for example status {0xf0, 32, 2} set fan 2)
step – set step (cyclic) (for example status {0xf0, 34, 2} set fan +2; status {0xf0, 34, -1} set fan -1)

4-bytes

Byte Description
0 0xf
1 0 – Target (value)
2 – Target (step)
2 fractional part of temperature (0-255)
3 integer part of temperature