homebridge-homematicip-multichannel 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +396 -0
  2. package/LICENSE +201 -0
  3. package/README.md +161 -0
  4. package/config.schema.json +47 -0
  5. package/dist/CustomCharacteristic.js +67 -0
  6. package/dist/CustomCharacteristic.js.map +1 -0
  7. package/dist/HmIPAccessory.js +27 -0
  8. package/dist/HmIPAccessory.js.map +1 -0
  9. package/dist/HmIPConnector.js +243 -0
  10. package/dist/HmIPConnector.js.map +1 -0
  11. package/dist/HmIPPlatform.js +400 -0
  12. package/dist/HmIPPlatform.js.map +1 -0
  13. package/dist/HmIPSecuritySystem.js +155 -0
  14. package/dist/HmIPSecuritySystem.js.map +1 -0
  15. package/dist/HmIPState.js +9 -0
  16. package/dist/HmIPState.js.map +1 -0
  17. package/dist/devices/HmIPBlind.js +60 -0
  18. package/dist/devices/HmIPBlind.js.map +1 -0
  19. package/dist/devices/HmIPButton.js +91 -0
  20. package/dist/devices/HmIPButton.js.map +1 -0
  21. package/dist/devices/HmIPClimateSensor.js +57 -0
  22. package/dist/devices/HmIPClimateSensor.js.map +1 -0
  23. package/dist/devices/HmIPContactSensor.js +75 -0
  24. package/dist/devices/HmIPContactSensor.js.map +1 -0
  25. package/dist/devices/HmIPDimmer.js +79 -0
  26. package/dist/devices/HmIPDimmer.js.map +1 -0
  27. package/dist/devices/HmIPDimmerMultiChannel.js +99 -0
  28. package/dist/devices/HmIPDimmerMultiChannel.js.map +1 -0
  29. package/dist/devices/HmIPDoorLockDrive.js +143 -0
  30. package/dist/devices/HmIPDoorLockDrive.js.map +1 -0
  31. package/dist/devices/HmIPDoorLockSensor.js +79 -0
  32. package/dist/devices/HmIPDoorLockSensor.js.map +1 -0
  33. package/dist/devices/HmIPGarageDoor.js +165 -0
  34. package/dist/devices/HmIPGarageDoor.js.map +1 -0
  35. package/dist/devices/HmIPGarageDoorController.js +131 -0
  36. package/dist/devices/HmIPGarageDoorController.js.map +1 -0
  37. package/dist/devices/HmIPGenericDevice.js +79 -0
  38. package/dist/devices/HmIPGenericDevice.js.map +1 -0
  39. package/dist/devices/HmIPHeatingThermostat.js +339 -0
  40. package/dist/devices/HmIPHeatingThermostat.js.map +1 -0
  41. package/dist/devices/HmIPLightSensor.js +39 -0
  42. package/dist/devices/HmIPLightSensor.js.map +1 -0
  43. package/dist/devices/HmIPMotionDetector.js +94 -0
  44. package/dist/devices/HmIPMotionDetector.js.map +1 -0
  45. package/dist/devices/HmIPPresenceDetector.js +64 -0
  46. package/dist/devices/HmIPPresenceDetector.js.map +1 -0
  47. package/dist/devices/HmIPRotaryHandleSensor.js +70 -0
  48. package/dist/devices/HmIPRotaryHandleSensor.js.map +1 -0
  49. package/dist/devices/HmIPShutter.js +94 -0
  50. package/dist/devices/HmIPShutter.js.map +1 -0
  51. package/dist/devices/HmIPSmokeDetector.js +62 -0
  52. package/dist/devices/HmIPSmokeDetector.js.map +1 -0
  53. package/dist/devices/HmIPSwitch.js +112 -0
  54. package/dist/devices/HmIPSwitch.js.map +1 -0
  55. package/dist/devices/HmIPSwitchMeasuring.js +78 -0
  56. package/dist/devices/HmIPSwitchMeasuring.js.map +1 -0
  57. package/dist/devices/HmIPSwitchNotificationLight.js +486 -0
  58. package/dist/devices/HmIPSwitchNotificationLight.js.map +1 -0
  59. package/dist/devices/HmIPWallMountedThermostat.js +67 -0
  60. package/dist/devices/HmIPWallMountedThermostat.js.map +1 -0
  61. package/dist/devices/HmIPWaterSensor.js +48 -0
  62. package/dist/devices/HmIPWaterSensor.js.map +1 -0
  63. package/dist/devices/HmIPWeatherSensor.js +282 -0
  64. package/dist/devices/HmIPWeatherSensor.js.map +1 -0
  65. package/dist/devices/HmIPWeatherSensorPlus.js +93 -0
  66. package/dist/devices/HmIPWeatherSensorPlus.js.map +1 -0
  67. package/dist/devices/HmIPWeatherSensorPro.js +45 -0
  68. package/dist/devices/HmIPWeatherSensorPro.js.map +1 -0
  69. package/dist/index.js +9 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/settings.js +13 -0
  72. package/dist/settings.js.map +1 -0
  73. package/package.json +68 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,396 @@
1
+ ## 1.4.0 (2026-05-17)
2
+
3
+ ### Improvements
4
+
5
+ - **HmIPW-DRS8 / HmIPW-DRS4 / HmIP-BS2 / HmIP-PCBS2 / HmIP-MOD-OC8 / HmIP-WHS2 / HmIP-DRSI4**:
6
+ All switch channels are now exposed as individual HomeKit Switch services (multi-channel
7
+ support, originally added in master via @gkminix's work, is now part of a tagged release).
8
+ - **Switches**: Add `ConfiguredName` characteristic per channel so channel-specific labels
9
+ are displayed in the Home app, and provide a sensible default name when the device label
10
+ is empty.
11
+ - **Switches**: Migrate cached accessories from older single-service layout by removing the
12
+ orphaned legacy Switch service that was created without a subtype.
13
+ - **MULTI_MODE_INPUT_SWITCH_CHANNEL**: State updates from this channel type are now applied
14
+ (previously only handled at registration time).
15
+
16
+ ### Packaging
17
+
18
+ - Add `prepare` script and `files` allowlist so the plugin can be installed straight from
19
+ a GitHub fork (`npm i github:<user>/homebridge-homematicip`) and still ship a built
20
+ `dist/` directory.
21
+
22
+ ## 1.3.1 (2024-01-13)
23
+
24
+ ### New devices
25
+
26
+ - **HmIP-DRDI3**: Added multichannel dimmer (@smhex)
27
+ - **HmIP-FSI16**: Added switch actor for 16A (@gkminix)
28
+
29
+ ### Improvements
30
+
31
+ - **General**: Version bumps of dependencies
32
+
33
+ ## 1.2.0 (2023-11-01)
34
+
35
+ ### New devices
36
+
37
+ - **HmIP-SWO**: Added weather sensors: HmIP-SWO-B, HmIP-SWO-PL, HmIP-SWO-PR
38
+
39
+ ### Improvements
40
+
41
+ - **Thermostats**: Added eve compatible valve position as custom characteristic
42
+ - **General**: Unified HmIPHeatingThermostat, HmIPWallMountedThermostat
43
+ - **General**: Fixed missing fakegato statistics
44
+ - **General**: Limited fakegato updates
45
+ - **General**: Version bumps of dependencies
46
+
47
+ ### Bugfix
48
+
49
+ - **General**: Works with Node.js >= 20
50
+
51
+ ## 1.0.1 (2022-09-05)
52
+
53
+ ### Bugfix
54
+
55
+ - **Switches**: Fixed "characteristic was supplied illegal value: null"
56
+
57
+ ## 1.1.0 (2022-10-12)
58
+
59
+ ### Improvements
60
+
61
+ - **WallMountedThermostat**: Improved handling of heating/cooling state (@aceg1k)
62
+ - **WallMountedThermostat**: Guard against unnecessary API calls (@aceg1k)
63
+ - **API call limited**: Added reservoir and ability to prioritize API calls (@aceg1k)
64
+ - **General**: Version bumps of dependencies
65
+
66
+ ## 1.0.1 (2022-09-05)
67
+
68
+ ### Bugfix
69
+
70
+ - **Switches**: Fixed "characteristic was supplied illegal value: null"
71
+
72
+ ## 1.0.0 (2022-08-31)
73
+
74
+ ### New devices
75
+
76
+ - **HmIP-BLS**: Added support for HmIP-BLS door lock sensor (Many thanks to @smhex)
77
+
78
+ ### Improvements
79
+
80
+ - **ClimateSensor**: Added switch to force a thermostat device to act as a climate sensor (Many thanks to @ohueter)
81
+ - **General**: It's time for version 1.0.0!
82
+ - **General**: Version bumps of dependencies.
83
+
84
+ ## 0.8.0 (2022-05-11)
85
+
86
+ ### New devices
87
+
88
+ - **HmIP-DLS**: Added support for HmIP-DLS door lock sensor (Many thanks to @smhex)
89
+
90
+ ### Improvements
91
+
92
+ - **General**: Version bumps of dependencies.
93
+ - **General**: Switched to pnpm instead of npm.
94
+
95
+ ### Bugfix
96
+
97
+ - **SecuritySystem**: Fixed erroneous state change within the home app.
98
+
99
+ ## 0.7.2 (2021-12-29)
100
+
101
+ ### Improvements
102
+
103
+ - **HmIP-MOD**: Added "lightSwitch" config option to disable light switch if not available.
104
+ - **General**: Reduced verbosity of log messages. Some frequent log messages have log level debug now.
105
+
106
+ ### Bugfix
107
+
108
+ - **General**: Fixed removal of cached accessories which were removed from HmIP cloud.
109
+
110
+ ## 0.7.1 (2021-12-21)
111
+
112
+ ### Improvements
113
+
114
+ - **General**: Added per-device config. All devices can be hidden by setting config.json option "hidden": true. See
115
+ [GitHub Wiki](https://github.com/marcsowen/homebridge-homematicip/wiki) for details.
116
+ - **HmIP-DLD**: New option "openLatch". When set to true, opening the lock will open the door completely by pulling
117
+ the door latch.
118
+
119
+ ### Bugfix
120
+
121
+ - **HmIP-DLD**: Lock target state was not always updated correctly displaying an opening/closing animation in Home app.
122
+
123
+ ## 0.7.0 (2021-12-18)
124
+
125
+ ### New devices
126
+
127
+ - **HmIP-DLD**: Added support for HmIP door lock drive - thanks to @adrianoje for borrowing me his HmIP-DLD!
128
+
129
+ ### Improvements
130
+
131
+ - **General**: Version bumps of dependencies.
132
+
133
+ ## 0.6.0 (2021-11-26)
134
+
135
+ ### Improvements
136
+
137
+ - **Elgato EVE history service**: Support for graphical temperature/humidity plots when using EVE app. The history is
138
+ stored on the filesystem of the server running this plugin (e.g. your Raspberry Pi). Many thanks to @dmalch for
139
+ implementing this feature.
140
+ - **General**: Clean-up and version bumps.
141
+
142
+ ## 0.5.2 (2021-10-07)
143
+
144
+ ### New devices
145
+
146
+ - **HmIP-eTRV-E**: Added support for HmIP Thermostat "Evo" - thanks to Sven Liebert for adding support.
147
+
148
+ ### Improvements
149
+
150
+ - **HmIPHeatingThermostat**: Extend min/max set temperature range to 5-30 degrees.
151
+
152
+ ### Bugfix
153
+
154
+ - **General**: Version bumps for dependencies. I'm still using 3.0.0-beta9 of node-fetch since all projects need to
155
+ switch from "commonJS" to "ESM" starting from node-fetch 3.0.0. This caused problems for some users.
156
+ (https://github.com/marcsowen/homebridge-homematicip/issues/165)
157
+
158
+ ## 0.5.1 (2021-07-29)
159
+
160
+ ### Bugfix
161
+
162
+ - **General**: Version bumps for dependencies. Solves an issue with node-fetch for newer installations.
163
+
164
+ ## 0.5.0 (2021-05-15)
165
+
166
+ ### Improvements
167
+
168
+ - **HmIP-STH/STHD**: Device is now a thermostat instead of a simple climate sensor. The target temperature is usually
169
+ extracted from the device channel. In case of the HmIP-STH the target temperature is determined from the heating group
170
+ since the device channel doesn't provide this kind of information.
171
+ - **General**: Log messages contain a unit symbol where applicable.
172
+ - **General**: Removed now long-running Hclean-up code for obsolete services and characteristics
173
+
174
+ ## 0.4.3 (2021-03-23)
175
+
176
+ ### Bugfix
177
+
178
+ - **Dimmer**: Fixed turning dimmer on with Siri.
179
+
180
+ ## 0.4.2 (2021-03-23)
181
+
182
+ ### Bugfix
183
+
184
+ - **Dimmer**: Fixed "flashing" of dimmer while changing dim level.
185
+
186
+ ## 0.4.1 (2021-03-21)
187
+
188
+ ### New devices
189
+
190
+ - **Dimmer**: Added dimmer devices: HmIP-PDT, HmIP-BDT, HmIP-FDT, HmIPW-DRD3
191
+
192
+ ## 0.4.0 (2021-03-19)
193
+
194
+ ### New devices
195
+
196
+ - **MotionDetector**: Added motion detector style devices: HmIP-SMI, HmIP-SMO-A, HmIP-SMI55
197
+ - **PresenceDetector**: Added presence detector: HmIP-SPI
198
+
199
+ ## 0.3.7 (2021-03-13)
200
+
201
+ ### Bugfix
202
+
203
+ - **General**: Fixed tampered state mapping.
204
+
205
+ ## 0.3.6 (2021-03-13)
206
+
207
+ ### Improvements
208
+
209
+ - **ContactSensor**: Added sabotage state (tampered state) for contact sensors which support it.
210
+
211
+ ### Bugfix
212
+
213
+ - **General**: Fixed low battery display for all devices with sabotage channel.
214
+
215
+ ## 0.3.5 (2021-03-13)
216
+
217
+ ### Improvements
218
+
219
+ - **SmokeDetector**: Removed obsolete tampered characteristic.
220
+
221
+ ## 0.3.4 (2021-03-13)
222
+
223
+ ### Bugfix
224
+
225
+ - **General**: Prevent warning messages about missing characteristics.
226
+
227
+ ## 0.3.3 (2021-03-13)
228
+
229
+ ### Improvements
230
+
231
+ - **General**: Removed obsolete battery services and characteristics.
232
+
233
+ ## 0.3.2 (2021-03-13)
234
+
235
+ ### Improvements
236
+
237
+ - **ContactSensor**: Removed obsolete current door state characteristic.
238
+
239
+ ## 0.3.1 (2021-03-13)
240
+
241
+ ### Improvements
242
+
243
+ - **ContactSensor**: Removed additional "window" service which prevents display of two window sensors when there is only
244
+ one.
245
+ - **RotaryHandleSensor**: Use window service for the rotary handle sensor exclusively. Removed contact service for this
246
+ device.
247
+
248
+ ## 0.3.0 (2021-02-28)
249
+
250
+ ### New devices
251
+
252
+ - **SecuritySystem**: Added security system including internal and external alarm zones. This is definitely beta, so
253
+ please don't trust the alarm to go off inside HomeKit. Also check the HomematicIP app to be sure the right alarm
254
+ setting is applied.
255
+
256
+ ### Improvements
257
+
258
+ - **ContactSensor**: Added "window" service to contact sensor. The window service supports "tilted" windows by
259
+ displaying a current position of 50%.
260
+ - **General**: Only add battery service if device actually has a battery.
261
+ - **General**: Removed now optional characteristics "battery level" and "charging state" which are not supported by
262
+ HomematicIP anyway.
263
+
264
+ ## 0.2.5 (2021-02-12)
265
+
266
+ ### Improvements
267
+
268
+ - **Shutter/Blind**: Improved target position behavior even further. Now target always follows the current position. The
269
+ spinning progress indicator was actually spinning because current and target position were not the same.
270
+
271
+ ## 0.2.4 (2021-02-12)
272
+
273
+ ### Improvements
274
+
275
+ - **General**: Removed all push button type devices. I haven't figured out a way to get push events from the HmIP-Cloud.
276
+ My guess is it is not possible. Now those devices not shown as unsupported devices in the Home App.
277
+
278
+ ## 0.2.3 (2021-02-12)
279
+
280
+ ### New devices
281
+
282
+ - **HmIP-eTRV-C**: Heating-thermostat compact without display
283
+
284
+ ### Improvements
285
+
286
+ - **HmIP-eTRV**: Fixed update of valve position. Show valve position changes in logs.
287
+ - **HmIP-eTRV**: Valve position > 0 indicates current cooling/heating state: HEAT. Valve position = 0 indicates current
288
+ heating cooling/heating state: OFF.
289
+ - **HmIP-eTRV**: Added logs for setting ignored values (target cooling/heating mode, display units).
290
+ - **HmIP-eTRV**: Target cooling/heating mode is now ignored. Will be used for future mapping of custom states.
291
+ - **HmIP-eTRV**: Show changes of valve state in logs.
292
+
293
+ ### Bugfix
294
+
295
+ - **Shutter/Blind**: Fixed spinning progress indicator in Home app.
296
+ - **HmIP-eTRV-C**: HmIP-eTRV-C was listed but not actually supported.
297
+
298
+ ## 0.2.2 (2021-02-11)
299
+
300
+ ### New devices
301
+
302
+ - **HmIP-SLO**: Light Sensor outdoor
303
+
304
+ ### Improvements
305
+
306
+ - **General**: Added API call rate limiter to prevent 60 minutes IP blocks by eq-3 when using fast firing GUI elements
307
+ like the shutter slider in EVE app.
308
+ - **SwitchMeasuring**: Show power and energy with less decimal places.
309
+ - **Shutter/Blind**: Show shutter and slats level without decimal places.
310
+ - **General**: Minor code cleanup.
311
+
312
+ ## 0.2.1 (2021-02-07)
313
+
314
+ ### Improvements
315
+
316
+ - **WallMountedThermostat**: Added info log when changing target heating/cooling state or display unit. These changes
317
+ are ignored.
318
+
319
+ ### Bug Fixes
320
+
321
+ - **General**: Fixed dependency problem preventing plugin to start.
322
+
323
+ ## 0.2.0 (2021-02-04)
324
+
325
+ ### Improvements
326
+
327
+ - **Switch**: Split switch device into switch and measuring switch device to expose more features.
328
+ - **SwitchMeasuring**: Added EVE characteristics ElectricPower and ElectricalEnergy for measuring switches. Those values
329
+ can be viewed e.g. by using the EVE App on iOS.
330
+ - **General**: Code clean-up. Removed dozens of unused home references.
331
+ - **General**: Removed unused weather device.
332
+ - **WallMountedThermostat**: Target heating mode is now AUTO by default. Current heating mode depends on cooling state
333
+ of heating group.
334
+
335
+ ## 0.1.5 (2021-02-02)
336
+
337
+ ### Improvements
338
+
339
+ - **GarageDoor**: Introduced assumed target position. Enhanced state logic.
340
+
341
+ ### Bug Fixes
342
+
343
+ - **Blind**: Set correct (current) shutter level when setting slats level. This should prevent the shutter from going
344
+ all the way up when changing slats level.
345
+
346
+ ## 0.1.4 (2021-02-01)
347
+
348
+ ### Improvements
349
+
350
+ - **GarageDoor**: Removed explicit target door position which is not known anyway. This might improve display
351
+ of animation in Home App.
352
+
353
+ ## 0.1.3 (2021-02-01)
354
+
355
+ ### New devices
356
+
357
+ - **HmIP-FBL**: Blind Actuator - flush-mount
358
+ - **HmIP-BBL**: Blind Actuator - brand-mount
359
+
360
+ ## 0.1.2 (2021-01-29)
361
+
362
+ ### Improvements
363
+
364
+ - **General**: Automatically remove unsupported devices from cache
365
+
366
+ ## 0.1.1 (2021-01-28)
367
+
368
+ ### Improvements
369
+
370
+ - **GarageDoor**: Further optimized target door state by updating it asynchronously.
371
+
372
+ ### Bug Fixes
373
+
374
+ - **WaterSensor**: Hopefully fixed "This callback function has already been called by someone else; it can only be
375
+ called one time." bug. Removed humidity detector for now.
376
+ - **ClimateSensor**: Fixed a bug where outside temperatures below zero won't be accepted by HomeKit.
377
+
378
+ ## 0.1.0 (2021-01-28)
379
+
380
+ ### New devices
381
+
382
+ - **HmIP-SWD (Water sensor)**. The sensor exposes two services: Moisture detector and water level detector.
383
+
384
+ ### Improvements
385
+
386
+ - **GarageDoor**: Display light state as ON/OFF instead of true/false
387
+ - **HomeControllerAccessPoint**: Removed the device completely. It was not useful anyway and confused people why there
388
+ was still light burning in the house.
389
+ - **SmokeDetector**: Smoke alarm is only triggered when the device itself is detecting smoke. In this way the alarm
390
+ displayed on your device is showing the sensor where the smoke actually was detected, not all the smoke sensors in the
391
+ house.
392
+
393
+ ### Bug Fixes
394
+
395
+ - **GarageDoor**: Fixes target door state update when OPEN/CLOSE was triggered by external app
396
+ - **SmokeDetector**: Removed erroneous tampered state detection when instead it was really a burglar alarm.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.