Difference between revisions of "AC"
Jump to navigation
Jump to search
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | ===Example of description in XML=== | + | <languages/> |
+ | <translate> | ||
+ | ===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 18: | Line 22: | ||
|- | |- | ||
|t-delta||number||temperature range||16 | |t-delta||number||temperature range||16 | ||
+ | |- | ||
+ | |t-step||number||temperature step value||1 | ||
|- | |- | ||
|modes||bit mask||Mask of operation modes (fan, cool, dry, heat, auto)||0x1F | |modes||bit mask||Mask of operation modes (fan, cool, dry, heat, auto)||0x1F | ||
Line 37: | Line 43: | ||
<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" | ||
|- | |- | ||
− | + | !Byte number!!Bit number!!Description | |
|- | |- | ||
|0||0<br>3<br>4-7||On/Off<br>Autostate<br>Mode:<br>0 – fan<br>1 – cool<br>2 – dry<br>3 – heat<br>4 – auto | |0||0<br>3<br>4-7||On/Off<br>Autostate<br>Mode:<br>0 – fan<br>1 – cool<br>2 – dry<br>3 – heat<br>4 – auto | ||
Line 47: | Line 54: | ||
|1-2||8-23||Temperature setpoint | |1-2||8-23||Temperature setpoint | ||
|- | |- | ||
− | |3||24-27<br>28-31||Horizontal vanes:<br>0 – left<br>1 – left-center<br>2 – center<br>3 – center-right<br>4 – right<br>5 – sides (low angle)<br>6 – sides (high angle)<br>7 – from sides to center<br>Vertical vanes:<br>0 – auto<br>1 – top<br>2 – top-center<br>3 – center<br>4 – center-bottom<br>5 – bottom<br>6 – swing | + | |3||24-27<br><br><br><br><br><br><br><br><br>28-31<br><br><br><br><br><br><br><br>||Horizontal vanes:<br>0 – left<br>1 – left-center<br>2 – center<br>3 – center-right<br>4 – right<br>5 – sides (low angle)<br>6 – sides (high angle)<br>7 – from sides to center<br>Vertical vanes:<br>0 – auto<br>1 – top<br>2 – top-center<br>3 – center<br>4 – center-bottom<br>5 – bottom<br>6 – swing |
|- | |- | ||
− | |4||32-35||Fan:<br>0 – auto<br>1 – 1st speed<br>2 – 2nd speed<br>3 – 3rd speed<br>4 – 4th speed<br>5 – 5th speed<br>6 – silent mode | + | |4||32-35<br><br><br><br><br><br><br><br>||Fan:<br>0 – auto<br>1 – 1st speed<br>2 – 2nd speed<br>3 – 3rd speed<br>4 – 4th speed<br>5 – 5th speed<br>6 – silent mode |
|- | |- | ||
|5-6||40-55||Current temperature | |5-6||40-55||Current temperature | ||
Line 58: | Line 65: | ||
|} | |} | ||
− | ===Possible variants of setting the status=== | + | ===Possible variants of setting the status=== <!--T:7--> |
====1-byte==== | ====1-byte==== | ||
{|class="wikitable" | {|class="wikitable" | ||
Line 67: | Line 74: | ||
|} | |} | ||
− | ====2-bytes==== | + | ====2-bytes==== <!--T:8--> |
+ | <!--T:9--> | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 78: | Line 86: | ||
|} | |} | ||
− | ====3-bytes==== | + | ====3-bytes==== <!--T:10--> |
+ | <!--T:11--> | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 86: | Line 95: | ||
|0||0xf | |0||0xf | ||
|- | |- | ||
− | |1||16 – Mode (value)<br>18 – Mode (step)<br>32 – Fan (value)<br>34 – Fan (step)<br>48 – Horizontal vanes (value)<br>50 – Horizontal vanes (step)<br>64 – Vertical vanes (value)<br>66 – Vertical vanes (step) | + | |1||16 – Mode (value)<br>18 – Mode (step)<br>32 – Fan (value)<br>34 – Fan (step)<br>48 – Horizontal vanes (value)<br>50 – Horizontal vanes (step)<br>64 – Vertical vanes (value)<br>66 – Vertical vanes (step)<br>80 - Set current temp |
|- | |- | ||
|2||value – select value (for example status {0xf0, 32, 2} set fan 2)<br>step – set step (cyclic) (for example status {0xf0, 34, 2} set fan +2; status {0xf0, 34, -1} set fan -1) | |2||value – select value (for example status {0xf0, 32, 2} set fan 2)<br>step – set step (cyclic) (for example status {0xf0, 34, 2} set fan +2; status {0xf0, 34, -1} set fan -1) | ||
|} | |} | ||
− | ====4-bytes==== | + | ====4-bytes==== <!--T:12--> |
+ | <!--T:13--> | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 105: | Line 115: | ||
|3||integer part of temperature | |3||integer part of temperature | ||
|} | |} | ||
+ | </translate> |
Latest revision as of 12:04, 8 April 2024
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 |
t-step | number | temperature step value | 1 |
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) 80 - Set current temp |
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 |