forked from BobWatson/wmp2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wmp_protocol.js
63 lines (61 loc) · 1.46 KB
/
wmp_protocol.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
ID = "ID"
INFO ="INFO"
LIMITS = "LIMITS"
GET = "GET"
SET = "SET"
CHN = "CHN"
ACK = "ACK"
ERR = "ERR"
DISCOVER = "DISCOVER"
STATUS = "STATUS"
PING = "PING"
ONOFF = "ONOFF"
MODE = "MODE"
FANSP = "FANSP"
VANEUD = "VANEUD"
VANELR = "VANELR"
SETPTEMP = "SETPTEMP"
AMBTEMP = "AMBTEMP"
ERRSTATUS = "ERRSTATUS"
ERRCODE = "ERRCODE"
ERROROU = "ERROROU"
ALL = "*"
ON = "ON"
OFF = "OFF"
HEAT = "HEAT"
COOL = "COOL"
FAN = "FAN"
DRY = "DRY"
AUTO = "AUTO"
SWING = "SWING"
const WMP = {
ID : ID,
INFO :INFO,
LIMITS : LIMITS,
GET : GET,
SET : SET,
CHN : CHN,
ACK : ACK,
ERR : ERR,
DISCOVER : DISCOVER,
STATUS : STATUS,
PING : PING,
ONOFF : ONOFF,
MODE : MODE,
FANSP : FANSP,
VANEUD : VANEUD,
VANELR : VANELR,
SETPTEMP : SETPTEMP,
AMBTEMP : AMBTEMP,
ERRSTATUS : ERRSTATUS,
ERRCODE : ERRCODE,
ERROROU : ERROROU,
ALL : ALL,
ON : ON,
OFF : OFF,
ALLOWED_GET_COMMANDS : [ALL, ONOFF, MODE, SETPTEMP, FANSP, VANEUD, VANELR, AMBTEMP, ERRSTATUS, ERRCODE],
ALLOWED_SET_COMMANDS : [ONOFF, MODE, SETPTEMP, FANSP, VANEUD, VANELR],
LIMITED_RANGES : [ONOFF, MODE, FANSP, VANEUD, VANELR, SETPTEMP],
ALLOWED_LIMITS :{ONOFF : [ON, OFF], MODE : [HEAT, COOL, FAN, DRY, AUTO], FANSP : ["1", "2", "3", "4", "5", "6", "7", "8", "9", AUTO], VANEUD : [AUTO, "1", "2", "3", "4", "5", "6", "7", "8", "9", SWING], VANELR : [AUTO, "1", "2", "3", "4", "5", "6", "7", "8", "9", SWING], SETPTEMP : [180,300]}
}
module.exports = WMP;