forked from Koenkk/zigbee-herdsman-converters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheglo.ts
99 lines (96 loc) · 3.06 KB
/
eglo.ts
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
import fz from '../converters/fromZigbee';
import * as exposes from '../lib/exposes';
import * as m from '../lib/modernExtend';
import {DefinitionWithExtend} from '../lib/types';
const e = exposes.presets;
const ea = exposes.access;
const definitions: DefinitionWithExtend[] = [
{
zigbeeModel: ['EBF_RGB_Zm', 'EBF_RGB_Zm_CLP'],
model: '900091',
vendor: 'EGLO',
description: 'ROVITO-Z ceiling light',
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
},
{
zigbeeModel: ['ESMLFzm_w6_TW'],
model: '12242',
vendor: 'EGLO',
description: 'ST64 adjustable white filament bulb',
extend: [m.light({colorTemp: {range: [153, 454]}})],
},
{
zigbeeModel: ['EGLO_ZM_RGB_TW'],
model: '900024/12253',
vendor: 'EGLO',
description: 'RGB light',
extend: [m.light({colorTemp: {range: [153, 370]}, color: {modes: ['xy', 'hs']}})],
},
{
zigbeeModel: ['EGLO_ZM_TW_CLP'],
model: '98847',
vendor: 'EGLO',
description: 'FUEVA-Z ceiling light IP44',
extend: [m.light({colorTemp: {range: [153, 370]}})],
},
{
zigbeeModel: ['ERCU_3groups_Zm'],
model: '99099',
vendor: 'EGLO',
description: '3 groups remote controller',
fromZigbee: [
fz.command_on,
fz.awox_colors,
fz.awox_refresh,
fz.awox_refreshColored,
fz.command_off,
fz.command_step,
fz.command_move,
fz.command_move_to_level,
fz.command_move_to_color_temp,
fz.command_stop,
fz.command_recall,
fz.command_step_color_temperature,
],
toZigbee: [],
exposes: [
e.action([
'on',
'off',
'red',
'refresh',
'refresh_colored',
'blue',
'yellow',
'green',
'brightness_step_up',
'brightness_step_down',
'brightness_move_up',
'brightness_move_down',
'brightness_stop',
'recall_1',
'color_temperature_step_up',
'color_temperature_step_down',
]),
e.numeric('action_group', ea.STATE),
],
},
{
fingerprint: [
{
type: 'EndDevice',
manufacturerID: 4417,
modelID: 'TLSR82xx',
endpoints: [{ID: 1, profileID: 260, deviceID: 263, inputClusters: [0, 3, 4, 4096], outputClusters: [0, 3, 4, 5, 6, 8, 768, 4096]}],
},
],
model: '99106',
vendor: 'EGLO',
description: 'Connect-Z motion (PIR) sensor',
fromZigbee: [fz.command_on, fz.command_move_to_level, fz.command_move_to_color_temp],
toZigbee: [],
exposes: [e.action(['on', 'brightness_move_to_level', 'color_temperature_move'])],
},
];
export default definitions;
module.exports = definitions;