gev/reacthome-firmware

The device's models

Closed this issue · 0 comments

gev commented

Add the next device models to the Core.Models.hs module

#define DEVICE_TYPE_UNKNOWN 0x00

#define DEVICE_TYPE_DI_4 0x20
#define DEVICE_TYPE_CLIMATE 0x21
#define DEVICE_TYPE_DOPPLER 0x22
#define DEVICE_TYPE_RELAY_2 0x23
#define DEVICE_TYPE_IR_4 0x24
#define DEVICE_TYPE_SMART_4G 0x25
#define DEVICE_TYPE_SMART_4GD 0x26
#define DEVICE_TYPE_SMART_4A 0x27
#define DEVICE_TYPE_DI_4_W 0x28
#define DEVICE_TYPE_IBUTTON 0x29
#define DEVICE_TYPE_SMART_4AM 0x2A
#define DEVICE_TYPE_CO2 0x2B
#define DEVICE_TYPE_SMART_6_PUSH 0x2C

#define DEVICE_TYPE_RELAY_6 0xA0
#define DEVICE_TYPE_RELAY_12 0xA1
#define DEVICE_TYPE_RELAY_24 0xA2
#define DEVICE_TYPE_DIM_4 0xA3
#define DEVICE_TYPE_DIM_8 0xA4
#define DEVICE_TYPE_LAN_AMP 0xA5
#define DEVICE_TYPE_RSHUB 0xA6
#define DEVICE_TYPE_RELAY_2_DIN 0xA7
#define DEVICE_TYPE_DI_8_DIN 0xA8
#define DEVICE_TYPE_AO_4_DIN 0xA9
#define DEVICE_TYPE_MIX_2 0xAA
#define DEVICE_TYPE_MIX_1 0xAB
#define DEVICE_TYPE_MIX_1_RS 0xAC
#define DEVICE_TYPE_DIM_12_LED_RS 0xAD
#define DEVICE_TYPE_RELAY_12_RS 0xAE
#define DEVICE_TYPE_DIM_8_RS 0xAF
#define DEVICE_TYPE_RS_HUB_1_RS 0xB0
#define DEVICE_TYPE_RS_HUB_1 0xB1
#define DEVICE_TYPE_RS_HUB_4 0xb2

#define DEVICE_TYPE_DIM_12_AC_RS 0xB3
#define DEVICE_TYPE_DIM_12_DC_RS 0xB4
#define DEVICE_TYPE_MIX_6x12_RS 0xB5

Use the Uint8 type:

deviceUnknown = 0x00 :: Uint8