-
Notifications
You must be signed in to change notification settings - Fork 505
/
ias_ace.h
52 lines (45 loc) · 1.92 KB
/
ias_ace.h
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
#ifndef IAS_ACE_H
#define IAS_ACE_H
#include <QString>
// server send
#define IAS_ACE_CMD_ARM_RESPONSE 0x00
#define IAS_ACE_CMD_GET_ZONE_ID_MAP_RESPONSE 0x01
#define IAS_ACE_CMD_GET_ZONE_INFORMATION_RESPONSE 0x02
#define IAS_ACE_CMD_ZONE_STATUS_CHANGED 0x03
#define IAS_ACE_CMD_PANEL_STATUS_CHANGED 0x04
#define IAS_ACE_CMD_GET_PANEL_STATUS_RESPONSE 0x05
#define IAS_ACE_CMD_SET_BYPASSED_ZONE_LIST 0x06
#define IAS_ACE_CMD_BYPASS_RESPONSE 0x07
#define IAS_ACE_CMD_GET_ZONE_STATUS_RESPONSE 0x08
// server receive
#define IAS_ACE_CMD_ARM 0x00
#define IAS_ACE_CMD_BYPASS 0x01
#define IAS_ACE_CMD_EMERGENCY 0x02
#define IAS_ACE_CMD_FIRE 0x03
#define IAS_ACE_CMD_PANIC 0x04
#define IAS_ACE_CMD_GET_ZONE_ID_MAP 0x05
#define IAS_ACE_CMD_GET_ZONE_INFORMATION 0x06
#define IAS_ACE_CMD_GET_PANEL_STATUS 0x07
#define IAS_ACE_CMD_GET_BYPASSED_ZONE_LIST 0x08
#define IAS_ACE_CMD_GET_ZONE_STATUS 0x09
#define IAS_ACE_PANEL_STATUS_PANEL_DISARMED 0x00
#define IAS_ACE_PANEL_STATUS_ARMED_STAY 0x01
#define IAS_ACE_PANEL_STATUS_ARMED_NIGHT 0x02
#define IAS_ACE_PANEL_STATUS_ARMED_AWAY 0x03
#define IAS_ACE_PANEL_STATUS_EXIT_DELAY 0x04
#define IAS_ACE_PANEL_STATUS_ENTRY_DELAY 0x05
#define IAS_ACE_PANEL_STATUS_NOT_READY_TO_ARM 0x06
#define IAS_ACE_PANEL_STATUS_IN_ALARM 0x07
#define IAS_ACE_PANEL_STATUS_ARMING_STAY 0x08
#define IAS_ACE_PANEL_STATUS_ARMING_NIGHT 0x09
#define IAS_ACE_PANEL_STATUS_ARMING_AWAY 0x0a
namespace deCONZ {
class ApsDataIndication;
class ZclFrame;
}
class AlarmSystems;
class ApsControllerWrapper;
QLatin1String IAS_PanelStatusToString(quint8 panelStatus);
int IAS_PanelStatusFromString(const QString &panelStatus);
void IAS_IasAceClusterIndication(const deCONZ::ApsDataIndication &ind, deCONZ::ZclFrame &zclFrame, AlarmSystems *alarmSystems, ApsControllerWrapper &apsCtrlWrapper);
#endif // IAS_ACE_H