-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathzigbee_config.js
141 lines (140 loc) · 4.83 KB
/
zigbee_config.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
const zigbeeConfig = {
devices:[
{
ieeeAddr: '0x14b457fffe7c928a',
longPressFunctionality: {
type: 'sonos',
sonosIp: '192.168.1.206',
},
endpointsOn: [
{ type: 'hue', name: 'star-livingroom', action: 'on'},
{ type: 'hue', name: 'star-kitchen', action: 'on'},
],
endpointsOff: [
{ type: 'hue', name: 'star-livingroom', action: 'off'},
{ type: 'hue', name: 'star-kitchen', action: 'off'},
],
},
{
ieeeAddr: '0xccccccfffe2d74f8',
longPressFunctionality: {
type: 'sonos',
sonosIp: '192.168.1.120',
},
endpointsOn: [
{ type: 'url', url: 'http://192.168.1.199/cm?cmnd=Power%20On'},
{ type: 'url', url: 'http://192.168.1.208/cm?cmnd=Power%20On'},
],
endpointsOff: [
{ type: 'url', url: 'http://192.168.1.199/cm?cmnd=Power%20off'},
{ type: 'url', url: 'http://192.168.1.208/cm?cmnd=Power%20off'},
]
},
{
ieeeAddr: '0x14b457fffeca3902',
longPressFunctionality: {
type: 'sonos',
sonosIp: '192.168.1.120',
},
endpointsOn: [
{ type: 'url', url: 'http://192.168.1.199/cm?cmnd=Power%20On'},
{ type: 'url', url: 'http://192.168.1.208/cm?cmnd=Power%20On'},
],
endpointsOff: [
{ type: 'url', url: 'http://192.168.1.199/cm?cmnd=Power%20off'},
{ type: 'url', url: 'http://192.168.1.208/cm?cmnd=Power%20off'},
]
},
{
ieeeAddr: '0x14b457fffe5d4e14',
longPressFunctionality: {
type: 'wledBrightness',
wledIp: 'http://192.168.1.158',
},
endpointsOn: [
{ type: 'url', url: 'http://192.168.1.158/win&T=1' },
],
endpointsOff: [
{ type: 'url', url: 'http://192.168.1.158/win&T=0' },
]
},
{
ieeeAddr: '0x000d6ffffe52a40d',
longPressFunctionality: {
type: 'sonos',
sonosIp: '192.168.1.206',
},
endpointsLevelUp: [
{ type: 'url', url: 'http://192.168.1.129/cm?cmnd=Power%20On'},
{ type: 'url', url: 'http://192.168.1.188/cm?cmnd=Power%20On'},
{ type: 'url', url: 'http://192.168.1.180:80/msg?code=4C:RC5:12'},
{ type: 'url', url: 'http://192.168.1.30:8080/hyperion/on'},
{ type: 'hue', name: 'star-livingroom', action: 'on'},
{ type: 'hue', name: 'star-kitchen', action: 'on'},
],
endpointsLevelDown: [
{ type: 'url', url: 'http://192.168.1.129/cm?cmnd=Power%20off'},
{ type: 'url', url: 'http://192.168.1.188/cm?cmnd=Power%20off'},
{ type: 'url', url: 'http://192.168.1.180:80/msg?code=4C:RC5:12'},
{ type: 'url', url: 'http://192.168.1.30:8080/hyperion/off'},
{ type: 'hue', name: 'star-livingroom', action: 'off'},
{ type: 'hue', name: 'star-kitchen', action: 'off'},
],
endpointsLeft: [
{ type: 'hue', name: 'star-livingroom', action: 'briDown'},
{ type: 'hue', name: 'star-kitchen', action: 'briDown'},
],
endpointsRight: [
{ type: 'hue', name: 'star-livingroom', action: 'briUp'},
{ type: 'hue', name: 'star-kitchen', action: 'briUp'},
],
endpointsToggleOn: [
{ type: 'hue', name: 'star-livingroom', action: 'on'},
{ type: 'hue', name: 'star-kitchen', action: 'on'},
],
endpointsToggleOff: [
{ type: 'hue', name: 'star-livingroom', action: 'off'},
{ type: 'hue', name: 'star-kitchen', action: 'off'},
],
},
{
ieeeAddr: '0x90fd9ffffeea9ede',
longPressFunctionality: {
type: 'sonos',
sonosIp: '192.168.1.120',
},
endpointsLevelUp: [
{ type: 'hue', name: 'Lekrum-spot-right', action: 'on'},
{ type: 'hue', name: 'Lekrum-spot-middle', action: 'on'},
{ type: 'hue', name: 'Lekrum-spot-left', action: 'on'},
{ type: 'url', url: 'http://192.168.1.33/win&T=1'},
{ type: 'url', url: 'http://192.168.1.196/win&T=1'},
{ type: 'url', url: 'http://192.168.1.62/win&T=1'},
],
endpointsLevelDown: [
{ type: 'hue', name: 'Lekrum-spot-right', action: 'off'},
{ type: 'hue', name: 'Lekrum-spot-middle', action: 'off'},
{ type: 'hue', name: 'Lekrum-spot-left', action: 'off'},
{ type: 'url', url: 'http://192.168.1.33/win&T=0'},
{ type: 'url', url: 'http://192.168.1.196/win&T=0'},
{ type: 'url', url: 'http://192.168.1.62/win&T=0'},
],
endpointsLeft: [
{ type: 'hue', name: 'Lekrum-spot-right', action: 'briDown'},
{ type: 'hue', name: 'Lekrum-spot-middle', action: 'briDown'},
{ type: 'hue', name: 'Lekrum-spot-left', action: 'briDown'},
],
endpointsRight: [
{ type: 'hue', name: 'Lekrum-spot-right', action: 'briUp'},
{ type: 'hue', name: 'Lekrum-spot-middle', action: 'briUp'},
{ type: 'hue', name: 'Lekrum-spot-left', action: 'briUp'},
],
endpointsToggleOn: [
{ type: 'url', url: 'http://192.168.1.196/win&T=1'},
],
endpointsToggleOff: [
{ type: 'url', url: 'http://192.168.1.196/win&T=0'},
],
},
]};
module.exports = zigbeeConfig;