forked from Koenkk/zigbee-herdsman-converters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiluminize.js
151 lines (150 loc) · 5.99 KB
/
iluminize.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
const exposes = require('../lib/exposes');
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
const reporting = require('../lib/reporting');
const extend = require('../lib/extend');
const e = exposes.presets;
module.exports = [
{
zigbeeModel: ['511.050'],
model: '511.050',
vendor: 'Iluminize',
description: 'Zigbee 3.0 LED controller for 5in1 RGB+CCT LEDs',
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [155, 450]}),
},
{
zigbeeModel: ['DIM Lighting'],
model: '511.10',
vendor: 'Iluminize',
description: 'Zigbee LED-Controller ',
extend: extend.light_onoff_brightness(),
},
{
zigbeeModel: ['511.201'],
model: '511.201',
vendor: 'Iluminize',
description: 'ZigBee 3.0 Dimm-Aktor mini 1x 230V',
extend: extend.light_onoff_brightness({noConfigure: true}),
configure: async (device, coordinatorEndpoint, logger) => {
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['5120.1100'],
model: '5120.1100',
vendor: 'Iluminize',
description: 'ZigBee 3.0 Dimm-Aktor mini 1x 230V',
extend: extend.light_onoff_brightness({noConfigure: true}),
configure: async (device, coordinatorEndpoint, logger) => {
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['5120.1110'],
model: '5120.1110',
vendor: 'Iluminize',
description: 'ZigBee 3.0 Dimm-Aktor mini 1x 230V',
extend: extend.light_onoff_brightness({noConfigure: true}),
configure: async (device, coordinatorEndpoint, logger) => {
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['511.010'],
model: '511.010',
vendor: 'Iluminize',
description: 'Zigbee LED-Controller',
extend: extend.light_onoff_brightness(),
},
{
zigbeeModel: ['511.012'],
model: '511.012',
vendor: 'Iluminize',
description: 'Zigbee LED-Controller',
extend: extend.light_onoff_brightness(),
},
{
zigbeeModel: ['511.202'],
model: '511.202',
vendor: 'Iluminize',
description: 'Zigbee 3.0 switch mini 1x230V, 200W/400W',
extend: extend.switch(),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1) || device.getEndpoint(3);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['5120.1200'],
model: '5120.1200',
vendor: 'Iluminize',
description: 'Zigbee 3.0 switch mini 1x230V with neutral, 200W/400W',
extend: extend.switch(),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1) || device.getEndpoint(3);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['5120.1210'],
model: '5120.1210',
vendor: 'Iluminize',
description: 'Zigbee 3.0 switch mini 1x230V without neutral, 200W/400W',
extend: extend.switch(),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1) || device.getEndpoint(3);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['ZG2801K2-G1-RGB-CCT-LEAD'],
model: '511.557',
vendor: 'Iluminize',
description: 'Zigbee 3.0 wall dimmer',
fromZigbee: [fz.command_off, fz.command_on, fz.command_move_to_color_temp, fz.command_move_to_color],
toZigbee: [],
exposes: [e.action(['off', 'on', 'color_temperature_move', 'color_move'])],
},
{
zigbeeModel: ['RGBW-CCT', '511.040'],
model: '511.040',
vendor: 'Iluminize',
description: 'ZigBee 3.0 LED-controller, 4 channel 5A, RGBW LED',
extend: extend.light_onoff_brightness_colortemp_color(),
},
{
zigbeeModel: ['HK-ZD-RGBCCT-A', '511.000'],
model: '511.000',
vendor: 'Iluminize',
whiteLabel: [{vendor: 'Sunricher', model: 'HK-ZD-RGBCCT-A'}],
description: 'Zigbee 3.0 universal LED-controller, 5 channel, RGBCCT LED',
extend: extend.light_onoff_brightness_colortemp_color(),
},
{
zigbeeModel: ['ZG2819S-RGBW'],
model: '511.344',
vendor: 'Iluminize',
description: 'Zigbee handheld remote RGBW 4 channels',
fromZigbee: [fz.battery, fz.command_move_to_color, fz.command_move_to_color_temp, fz.command_move_hue,
fz.command_step, fz.command_recall, fz.ZG2819S_command_on, fz.ZG2819S_command_off],
exposes: [e.battery(), e.action([
'color_move', 'color_temperature_move', 'hue_move', 'hue_stop', 'brightness_step_up', 'brightness_step_down',
'recall_*', 'on', 'off'])],
toZigbee: [],
meta: {multiEndpoint: true},
endpoint: (device) => {
return {ep1: 1, ep2: 2, ep3: 3, ep4: 4};
},
},
];