-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdevcats.go
281 lines (278 loc) · 12.5 KB
/
devcats.go
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// Copyright 2021 Andrew Bates
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package insteon
const (
GeneralizeDomain Domain = 0x00
DimmerDomain = 0x01
SwitchDomain = 0x02
NetworkDomain = 0x03
IrrigationDomain = 0x04
ThermostatDomain = 0x05
PoolSpaDomain = 0x06
SensorActuatorDomain = 0x07
HomeEntertainmentDomain = 0x08
EnergyMgmtDomain = 0x09
ApplianceDomain = 0x0a
PlumbingDomain = 0x0b
CommunicationDomain = 0x0c
ComputerDomain = 0x0d
WindowCoveringsDomain = 0x0e
AccessDomain = 0x0f
SecurityDomain = 0x10
SurveillanceDomain = 0x11
AutomotiveDomain = 0x12
PetCareDomain = 0x13
ToysDomain = 0x14
TimekeepingDomain = 0x15
HolidayDomain = 0x16
UnassignedDomain = 0xff
)
var devcatStrings = map[DevCat]string{
{0x00, 0x04}: "ControLinc",
{0x00, 0x05}: "RemoteLinc",
{0x00, 0x06}: "ICON Tabletop Controller",
{0x00, 0x09}: "SignaLinc RF Signal Enhancer",
{0x00, 0x0b}: "Access Point (Wireless Phase Coupler)",
{0x00, 0x0c}: "IES Color Touchscreen",
{0x00, 0x0e}: "RemoteLinc EZ",
{0x00, 0x10}: "RemoteLinc 2 Keypad, 4 Scene",
{0x00, 0x11}: "RemoteLinc 2 Switch",
{0x00, 0x12}: "RemoteLinc 2 Keypad, 8 Scene",
{0x00, 0x13}: "Insteon Diagnostics Keypad",
{0x00, 0x14}: "Insteon Mini Remote - 4 Scene (869 MHz)",
{0x00, 0x15}: "Insteon Mini Remote - Switch (869 MHz)",
{0x00, 0x16}: "Insteon Mini Remote - 8 Scene (869 MHz)",
{0x00, 0x17}: "Insteon Mini Remote - 4 Scene (921 MHz)",
{0x00, 0x18}: "Insteon Mini Remote - 8 Scene (921 MHz)",
{0x00, 0x19}: "Insteon Mini Remote - Switch (921 MHz)",
{0x00, 0x1a}: "Insteon Mini Remote - 8 Scene (915 MHz)",
{0x00, 0x1b}: "Insteon Mini Remote - 4 Scene (915 MHz)",
{0x00, 0x1c}: "Insteon Mini Remote - Switch (915 MHz)",
{0x00, 0x1d}: "Range Extender",
{0x01, 0x00}: "LampLinc 3-Pin",
{0x01, 0x01}: "SwitchLinc Dimmer",
{0x01, 0x02}: "In-LineLinc Dimmer",
{0x01, 0x03}: "ICON Dimmer Switch",
{0x01, 0x04}: "SwitchLinc Dimmer (High Wattage)",
{0x01, 0x05}: "Keypad Countdown Timer w/ Dimmer",
{0x01, 0x06}: "LampLinc Dimmer (2-Pin)",
{0x01, 0x07}: "ICON LampLinc",
{0x01, 0x08}: "SwitchLinc Dimmer Count-down Timer",
{0x01, 0x09}: "KeypadLinc Dimmer",
{0x01, 0x0a}: "Icon In-Wall Controller",
{0x01, 0x0b}: "Insteon Dimmer Module, France (869 MHz)",
{0x01, 0x0c}: "KeypadLinc Dimmer",
{0x01, 0x0d}: "SocketLinc",
{0x01, 0x0e}: "LampLinc (Dual-Band)",
{0x01, 0x0f}: "Insteon Dimmer Module, Germany (869 MHz)",
{0x01, 0x11}: "Insteon Dimmer Module, UK (869 MHz)",
{0x01, 0x12}: "Insteon Dimmer Module, Aus/NZ (921 MHz)",
{0x01, 0x13}: "ICON SwitchLinc Dimmer Lixar/Bell Canada",
{0x01, 0x17}: "ToggleLinc Dimmer",
{0x01, 0x18}: "Icon SwitchLinc Dimmer Inline Companion",
{0x01, 0x19}: "SwitchLinc Dimmer [with beeper]",
{0x01, 0x1a}: "In-LineLinc Dimmer [with beeper]",
{0x01, 0x1b}: "KeypadLinc Dimmer",
{0x01, 0x1c}: "KeypadLinc Dimmer",
{0x01, 0x1d}: "SwitchLinc Dimmer (High Wattage)[beeper]",
{0x01, 0x1e}: "ICON Switch Dimmer",
{0x01, 0x1f}: "ToggleLinc Dimmer [with beeper]",
{0x01, 0x20}: "SwitchLinc Dimmer (Dual-Band)",
{0x01, 0x21}: "OutletLinc Dimmer (Dual-Band)",
{0x01, 0x22}: "LampLinc",
{0x01, 0x23}: "LampLinc Dual-Band EZ",
{0x01, 0x24}: "SwitchLinc 2-Wire Dimmer (RF)",
{0x01, 0x25}: "In-LineLinc 0-10VDC Dimmer/Dual-SwitchDB",
{0x01, 0x2d}: "SwitchLinc-Dimmer Dual-Band 1000W",
{0x01, 0x2e}: "FanLinc",
{0x01, 0x2f}: "KeypadLinc Schedule Timer with Dimmer",
{0x01, 0x30}: "SwitchLinc Dimmer",
{0x01, 0x31}: "SwitchLinc Dimmer 240V-50/60Hz Dual-Band",
{0x01, 0x32}: "In-LineLinc Dimmer (Dual Band)",
{0x01, 0x34}: "Insteon DIN Rail Dimmer (915 MHz)",
{0x01, 0x35}: "Insteon Micro Dimmer (915 MHz)",
{0x01, 0x36}: "Insteon DIN Rail Dimmer (869 MHz)",
{0x01, 0x37}: "Insteon DIN Rail Dimmer (921 MHz)",
{0x01, 0x38}: "Insteon Micro Dimmer (869 MHz)",
{0x01, 0x39}: "Insteon Micro Dimmer (921 MHz)",
{0x01, 0x3a}: "LED Bulb 240V (915 MHz) - Screw-in Base",
{0x01, 0x3b}: "LED Bulb 240V Europe - Screw-in Base",
{0x01, 0x3c}: "LED Bulb 240V Aus/NZ - Screw-in Base",
{0x01, 0x3d}: "Insteon Ballast Dimmer (869 MHz)",
{0x01, 0x3e}: "Insteon Ballast Dimmer (921 MHz)",
{0x01, 0x3f}: "Insteon Fixture Dimmer (869 MHz)",
{0x01, 0x40}: "Insteon Fixture Dimmer (921 MHz)",
{0x01, 0x41}: "Keypad Dimmer Dual-Band, 8 Button",
{0x01, 0x42}: "Keypad Dimmer Dual-Band, 6 Button",
{0x01, 0x49}: "LED Bulb PAR38 US/Can - Screw-in Base",
{0x01, 0x4a}: "LED Bulb PAR38 Europe - Screw-in Base",
{0x01, 0x4b}: "LED Bulb PAR38 Aus/NZ - Screw-in Base",
{0x01, 0x4c}: "LED Bulb 240V Europe - Bayonet Base",
{0x01, 0x4d}: "LED Bulb 240V Aus/NZ - Bayonet Base",
{0x01, 0x4e}: "LED Bulb PAR38 Europe - Bayonet Base",
{0x01, 0x4f}: "LED Bulb PAR38 Aus/NZ - Bayonet Base",
{0x01, 0x50}: "Insteon Dimmer Module, Chile (915 MHz)",
{0x01, 0x51}: "LED Bulb 240V (915 MHz) - Screw-in Base",
{0x02, 0x05}: "KeypadLinc 8-button On/Off Switch",
{0x02, 0x06}: "Outdoor ApplianceLinc",
{0x02, 0x07}: "TimerLinc",
{0x02, 0x08}: "OutletLinc",
{0x02, 0x09}: "ApplianceLinc (3-Pin)",
{0x02, 0x0a}: "SwitchLinc Relay",
{0x02, 0x0b}: "ICON On/Off Switch",
{0x02, 0x0c}: "Icon Appliance Module",
{0x02, 0x0d}: "ToggleLinc Relay",
{0x02, 0x0e}: "SwitchLinc Relay Countdown Timer",
{0x02, 0x0f}: "KeypadLinc On/Off",
{0x02, 0x10}: "In-LineLinc Relay",
{0x02, 0x12}: "ICON In-lineLinc Relay Companion",
{0x02, 0x13}: "ICON SwitchLinc Relay Lixar/Bell Canada",
{0x02, 0x14}: "In-LineLinc Relay with Sense",
{0x02, 0x15}: "SwitchLinc Relay with Sense",
{0x02, 0x16}: "ICON On/Off Switch (25 max links)",
{0x02, 0x17}: "ICON Appliance Module",
{0x02, 0x18}: "SwitchLinc 220V Relay",
{0x02, 0x19}: "SwitchLinc 220V Relay [with beeper]",
{0x02, 0x1a}: "ToggleLinc Relay [with Beeper]",
{0x02, 0x1c}: "SwitchLinc Relay",
{0x02, 0x1d}: "Commercial Switch with relay",
{0x02, 0x1e}: "KeypadLinc On/Off (Dual-Band)",
{0x02, 0x1f}: "In-LineLinc On/Off (Dual-Band)",
{0x02, 0x25}: "KeypadLinc 8-Button Countdown On/Off Switch Timer",
{0x02, 0x26}: "Keypad Schedule Timer with On/Off Switch",
{0x02, 0x29}: "SwitchLinc Relay Countdown Timer",
{0x02, 0x2a}: "SwitchLinc Relay (Dual-Band)",
{0x02, 0x2b}: "In-LineLinc On/Off (Dual Band, 50/60 Hz)",
{0x02, 0x2c}: "KeypadLinc On/Off (Dual-Band,50/60 Hz)",
{0x02, 0x2d}: "Insteon On/Off Module, France (869 MHz)",
{0x02, 0x2e}: "Insteon DIN Rail On/Off (915 MHz)",
{0x02, 0x2f}: "Insteon Micro On/Off (915 MHz)",
{0x02, 0x30}: "Insteon On/Off Module, Germany (869 MHz)",
{0x02, 0x31}: "Insteon Micro On/Off (869 MHz)",
{0x02, 0x32}: "Insteon Micro On/Off (921 MHz)",
{0x02, 0x33}: "Insteon DIN Rail On/Off (869 MHz)",
{0x02, 0x34}: "Insteon DIN Rail On/Off (921 MHz)",
{0x02, 0x35}: "Insteon On/Off Module, UK (869 MHz)",
{0x02, 0x36}: "Insteon On/Off Module, Aus/NZ (921 MHz)",
{0x02, 0x37}: "Insteon On/Off Module, US (915 MHz)",
{0x02, 0x38}: "On/Off Outdoor Module (Dual-Band)",
{0x02, 0x39}: "On/Off Outlet",
{0x02, 0x3a}: "Insteon On/Off Module, Chile (915 MHz)",
{0x03, 0x01}: "PowerLinc Serial Controller",
{0x03, 0x02}: "PowerLinc USB Controller",
{0x03, 0x03}: "ICON PowerLinc Serial",
{0x03, 0x04}: "ICON PowerLinc USB",
{0x03, 0x05}: "PowerLinc Serial Modem",
{0x03, 0x06}: "IRLinc Receiver",
{0x03, 0x07}: "IRLinc Transmitter",
{0x03, 0x09}: "SmartLabs RF Developer’s Board",
{0x03, 0x0a}: "SeriaLinc - Insteon to RS232",
{0x03, 0x0b}: "PowerLinc USB Modem",
{0x03, 0x0f}: "EZX10IR X10 IR Receiver",
{0x03, 0x10}: "SmartLinc",
{0x03, 0x11}: "PowerLinc Serial Modem (Dual Band)",
{0x03, 0x13}: "PowerLinc USB Modem for HouseLinc",
{0x03, 0x14}: "PowerLinc Serial Modem for HouseLinc",
{0x03, 0x15}: "PowerLinc USB Modem (Dual Band)",
{0x03, 0x18}: "Insteon Central Controller (915 MHz)",
{0x03, 0x19}: "PowerLinc Serial Modem for HL(Dual Band)",
{0x03, 0x1a}: "PowerLinc USB Modem for HL (Dual Band)",
{0x03, 0x1b}: "iGateway",
{0x03, 0x1c}: "iGateway 2.0",
{0x03, 0x1e}: "PowerLincModemSerial w/o EEPROM(w/o RF)",
{0x03, 0x1f}: "USB Adapter - Domestically made",
{0x03, 0x20}: "USB Adapter",
{0x03, 0x21}: "Portable USB Adapter for HouseLinc",
{0x03, 0x23}: "Portable USB Adapter for HouseLinc",
{0x03, 0x24}: "TouchLinc",
{0x03, 0x27}: "TouchLinc",
{0x03, 0x28}: "Global PLM, Dual Band (915 MHz)",
{0x03, 0x29}: "PowerLinc Serial Modem (Dual Band) RF OFF, Auto Detect 128K",
{0x03, 0x2b}: "Insteon Hub (915 MHz) - no RF",
{0x03, 0x2e}: "Insteon Hub (EU - 869 MHz)",
{0x03, 0x2f}: "Insteon Hub (921 MHz)",
{0x03, 0x30}: "Insteon Hub (UK - 869 MHz)",
{0x03, 0x31}: "Insteon Hub (Plug-In Version)",
{0x03, 0x33}: "Insteon Hub II (915 MHz)",
{0x03, 0x37}: "Insteon Hub (915 MHz) - RF",
{0x04, 0x00}: "Compacta EZRain Sprinkler Controller",
{0x05, 0x00}: "Broan SMSC080 Exhaust Fan (no beeper)",
{0x05, 0x02}: "Broan SMSC110 Exhaust Fan (no beeper)",
{0x05, 0x03}: "Thermostat Adapter",
{0x05, 0x07}: "Insteon Wireless Thermostat",
{0x05, 0x0a}: "Insteon Wireless Thermostat (915 MHz)",
{0x05, 0x0b}: "Insteon Thermostat (915 MHz)",
{0x05, 0x0c}: "Broan SMSC080 Switch for 80CFM Fans",
{0x05, 0x0d}: "Broan SMSC110 Switch for 110CFM Fans",
{0x05, 0x0e}: "Integrated Remote Control Thermostat",
{0x05, 0x0f}: "Insteon Thermostat (869 MHz)",
{0x05, 0x10}: "Insteon Thermostat (921 MHz)",
{0x05, 0x11}: "Insteon Zone Thermostat (869 MHz)",
{0x05, 0x12}: "Insteon Zone Thermostat (921 MHz)",
{0x05, 0x13}: "Heat Pump Thermostat - US/Can (915MHz)",
{0x05, 0x14}: "Heat Pump Thermostat - Europe (869.85MHz)",
{0x05, 0x15}: "Heat Pump Thermostat - Aus/NZ (921MHz)",
{0x07, 0x00}: "I/OLinc",
{0x07, 0x03}: "Compacta EZIO2X4 #5010D",
{0x07, 0x05}: "Compacta EZSnsRF RcvrIntrfc Dakota Alert",
{0x07, 0x07}: "EZIO6I (6 inputs)",
{0x07, 0x08}: "EZIO4O (4 relay outputs)",
{0x07, 0x09}: "SynchroLinc",
{0x07, 0x0c}: "Lumistat",
{0x07, 0x0d}: "I/OLinc 50/60Hz Auto Detect",
{0x07, 0x0e}: "I/O Module - US (915 MHz)",
{0x07, 0x0f}: "I/O Module - EU (869.85 MHz)",
{0x07, 0x10}: "I/O Module - UK (869.85 MHz)",
{0x07, 0x11}: "I/O Module - AUS (921 MHz)",
{0x07, 0x12}: "IOLinc Dual-Band - US",
{0x07, 0x13}: "IOLinc Dual-Band - EU",
{0x07, 0x14}: "IOLinc Dual-Band - UK",
{0x07, 0x15}: "IOLinc Dual-Band - AUS/NZ",
{0x07, 0x16}: "Low Voltage/Contact Closure Interface (Dual Band) - US",
{0x07, 0x17}: "Low Voltage/Contact Closure Interface (Dual Band) - EU",
{0x07, 0x18}: "Low Voltage/Contact Closure Interface (Dual Band) - UK",
{0x07, 0x19}: "Low Voltage/Contact Closure Interface (Dual Band) - AUS/NZ",
{0x09, 0x07}: "iMeter Solo",
{0x09, 0x08}: "iMeter Home (Breaker Panel)",
{0x09, 0x09}: "iMeter Home (Meter)",
{0x09, 0x0a}: "220/240V 30A Load Controller NO (DB)",
{0x09, 0x0b}: "220/240V 30A Load Controller NC (DB)",
{0x09, 0x0c}: "GE Water Heater U-SNAP module",
{0x09, 0x0d}: "Energy Display",
{0x09, 0x0e}: "Power Strip with iMeter and SynchroLinc",
{0x09, 0x11}: "Insteon Digital Meter Reader",
{0x0e, 0x00}: "Somfy Drape Controller RF Bridge",
{0x0e, 0x01}: "Insteon Micro Open/Close (915 MHz)",
{0x0e, 0x02}: "Insteon Micro Open/Close (869 MHz)",
{0x0e, 0x03}: "Insteon Micro Open/Close (921 MHz)",
{0x0e, 0x04}: "Window Shade Kit - US",
{0x0e, 0x05}: "Window Shade Kit - EU",
{0x0e, 0x06}: "Window Shade Kit - AUS/NZ",
{0x0f, 0x06}: "MorningLinc",
{0x10, 0x01}: "Motion Sensor - US (915 MHz)",
{0x10, 0x02}: "Insteon Open/Close Sensor (915 MHz)",
{0x10, 0x04}: "Insteon Motion Sensor (869 MHz)",
{0x10, 0x05}: "Insteon Motion Sensor (921 MHz)",
{0x10, 0x06}: "Insteon Open/Close Sensor (869 MHz)",
{0x10, 0x07}: "Insteon Open/Close Sensor (921 MHz)",
{0x10, 0x08}: "Leak Sensor - US (915 MHz)",
{0x10, 0x09}: "Insteon Door Sensor",
{0x10, 0x0a}: "Smoke Bridge",
{0x10, 0x0d}: "Leak Sensor - EU (869 MHz)",
{0x10, 0x0e}: "Leak Sensor - AUS/NZ (921 MHz)",
{0x10, 0x11}: "Door Sensor II (915 MHz)",
{0x10, 0x14}: "Door Sensor II (869 MHz)",
{0x10, 0x15}: "Door Sensor II (921 MHz)",
{0x10, 0x16}: "Motion Sensor - US (915 MHz)",
}