AC

From Larnitech wiki page
Jump to navigation Jump to search

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