homebridge-velux 1.0.2 → 1.0.4

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.
@@ -93,7 +93,7 @@ class Gateway extends AccessoryDelegate {
93
93
  )
94
94
  }
95
95
  })
96
- .on('notification', (notification) => {
96
+ .on('rawNotification', (notification) => {
97
97
  const req = notification.request != null
98
98
  ? 'request ' + notification.request.id + ': '
99
99
  : ''
@@ -108,12 +108,17 @@ class Gateway extends AccessoryDelegate {
108
108
  toHexString(notification.cmd, 4), toHexString(notification.data)
109
109
  )
110
110
  }
111
+ })
112
+ .on('notification', (notification) => {
113
+ const req = notification.request != null
114
+ ? 'request ' + notification.request.id + ': '
115
+ : ''
111
116
  if (notification.payload == null) {
112
117
  this.debug('%s%s', req, notification.cmdName)
113
118
  } else {
114
119
  this.debug('%s%s: %j', req, notification.cmdName, notification.payload)
115
120
  }
116
- this.accessories?.[notification?.payload?.nodeId]?.update(notification?.payload)
121
+ this.accessories?.[notification.payload?.nodeId]?.update(notification.payload)
117
122
  })
118
123
  .on('send', (data) => {
119
124
  this.vvdebug('send %s', toHexString(data))
@@ -22,7 +22,8 @@ class Gateway extends VeluxService {
22
22
  this.addCharacteristicDelegate({
23
23
  key: 'logLevel',
24
24
  Characteristic: this.Characteristics.my.LogLevel,
25
- value: 2
25
+ value: 2,
26
+ props: { minValue: 0, maxValue: 4, minStep: 1 }
26
27
  })
27
28
  }
28
29
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "ebaauw"
8
8
  ],
9
9
  "license": "Apache-2.0",
10
- "version": "1.0.2",
10
+ "version": "1.0.4",
11
11
  "keywords": [
12
12
  "homebridge-plugin",
13
13
  "homekit",
@@ -22,13 +22,13 @@
22
22
  "velux": "cli/velux.js"
23
23
  },
24
24
  "engines": {
25
- "homebridge": "^1.10.0||^2.0.0-beta",
25
+ "homebridge": "^1.11.0||^2.0.0-beta",
26
26
  "node": "^22||^20",
27
27
  "klf200": "3.14"
28
28
  },
29
29
  "dependencies": {
30
- "hb-velux-tools": "~0.0.8",
31
- "homebridge-lib": "~7.1.6"
30
+ "hb-velux-tools": "~1.0.0",
31
+ "homebridge-lib": "~7.1.9"
32
32
  },
33
33
  "scripts": {
34
34
  "prepare": "standard",