homebridge-deconz 0.0.15 → 0.0.18
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.
- package/README.md +1 -4
- package/cli/deconz.js +2 -2
- package/homebridge-ui/public/index.html +249 -460
- package/homebridge-ui/public/index.old.html +506 -0
- package/lib/Deconz/ApiClient.js +3 -4
- package/lib/Deconz/Discovery.js +7 -4
- package/lib/Deconz/Resource.js +20 -3
- package/lib/DeconzAccessory/AirPurifier.js +38 -0
- package/lib/DeconzAccessory/Gateway.js +44 -20
- package/lib/DeconzAccessory/Motion.js +3 -0
- package/lib/DeconzAccessory/index.js +3 -3
- package/lib/DeconzPlatform.js +13 -12
- package/lib/DeconzService/AirPurifier.js +216 -0
- package/lib/DeconzService/AirQuality.js +23 -7
- package/lib/DeconzService/Button.js +4 -0
- package/lib/DeconzService/Consumption.js +1 -1
- package/lib/DeconzService/Contact.js +2 -0
- package/lib/DeconzService/Light.js +9 -9
- package/lib/DeconzService/LightLevel.js +2 -0
- package/lib/DeconzService/Motion.js +1 -1
- package/lib/DeconzService/Outlet.js +1 -1
- package/lib/DeconzService/Power.js +1 -1
- package/lib/DeconzService/Switch.js +35 -23
- package/lib/DeconzService/Temperature.js +1 -0
- package/lib/DeconzService/Thermostat.js +1 -0
- package/lib/DeconzService/WindowCovering.js +1 -1
- package/lib/DeconzService/index.js +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
@@ -81,7 +81,4 @@ Allow ample time after exposing or removing accessories for HomeKit to sync the
|
|
81
81
|
### Command-Line Utility
|
82
82
|
Homebridge deCONZ includes the `deconz` command-line utility, to discover,
|
83
83
|
monitor, and interact with a deCONZ gateway.
|
84
|
-
|
85
|
-
```
|
86
|
-
deconz --help
|
87
|
-
```
|
84
|
+
See the [`deconz` Tutorial](https://github.com/ebaauw/homebridge-deconz/wiki/%60deconz%60-Tutorial) in the Wiki for more info.
|
package/cli/deconz.js
CHANGED
@@ -703,7 +703,7 @@ class Main extends homebridgeLib.CommandLineTool {
|
|
703
703
|
const { websocketport } = await this.client.get('/config')
|
704
704
|
options.host = this.client.host + ':' + websocketport
|
705
705
|
this.wsMonitor = new Deconz.WsClient(options)
|
706
|
-
this.setOptions({ mode
|
706
|
+
this.setOptions({ mode })
|
707
707
|
this.wsMonitor
|
708
708
|
.on('error', (error) => { this.error(error) })
|
709
709
|
.on('listening', (url) => { this.log('listening on %s', url) })
|
@@ -813,7 +813,7 @@ class Main extends homebridgeLib.CommandLineTool {
|
|
813
813
|
.parse(...args)
|
814
814
|
const apiKey = await this.client.getApiKey('deconz')
|
815
815
|
this.print(jsonFormatter.stringify(apiKey))
|
816
|
-
this.gateways[this.bridgeid] = { apiKey
|
816
|
+
this.gateways[this.bridgeid] = { apiKey }
|
817
817
|
if (this.client.fingerprint != null) {
|
818
818
|
this.gateways[this.bridgeid].fingerprint = this.client.fingerprint
|
819
819
|
}
|