homebridge-flume 1.2.1 → 1.2.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  All notable changes to homebridge-flume will be documented in this file.
4
4
 
5
+ ## 1.2.5 (2022-01-24)
6
+
7
+ ### Changed
8
+
9
+ - Bump `homebridge` recommended version to v1.4.0
10
+ - Bump `axios` to v0.25.0
11
+
12
+ ## 1.2.4 (2022-01-13)
13
+
14
+ ### Changed
15
+
16
+ - Bump `node` recommended versions to v14.18.3 or v16.13.2
17
+
18
+ ### Fixed
19
+
20
+ - Plugin crash for older versions of Homebridge
21
+
22
+ ## 1.2.3 (2022-01-03)
23
+
24
+ ### Changed
25
+
26
+ - HOOBS certified badge on README
27
+ - Plugin will log HAPNodeJS version on startup
28
+ - Bump `homebridge` recommended version to v1.3.9
29
+
30
+ ## 1.2.2 (2021-12-21)
31
+
32
+ ### Changed
33
+
34
+ - Some config options rearranged for easier access
35
+
5
36
  ## 1.2.1 (2021-12-08)
6
37
 
7
38
  ### Changed
package/README.md CHANGED
@@ -7,7 +7,8 @@
7
7
 
8
8
  Homebridge plugin to integrate Flume devices into HomeKit
9
9
 
10
- [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
10
+ [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
11
+ [![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow)](https://plugins.hoobs.org/plugin/homebridge-thermobit)
11
12
  [![npm](https://img.shields.io/npm/v/homebridge-flume/latest?label=latest)](https://www.npmjs.com/package/homebridge-flume)
12
13
  [![npm](https://img.shields.io/npm/v/homebridge-flume/beta?label=beta)](https://github.com/bwp91/homebridge-flume/wiki/Beta-Version)
13
14
  [![npm](https://img.shields.io/npm/dt/homebridge-flume)](https://www.npmjs.com/package/homebridge-flume)
@@ -39,17 +39,6 @@
39
39
  "required": true,
40
40
  "description": "Your Flume Client Secret, found at https://portal.flumetech.com."
41
41
  },
42
- "refreshInterval": {
43
- "title": "Refresh Interval",
44
- "type": "integer",
45
- "placeholder": 2,
46
- "description": "Number of minutes between updates. Must be 2 or more."
47
- },
48
- "disableDeviceLogging": {
49
- "type": "boolean",
50
- "title": "Disable Device Logging",
51
- "description": "Global logging setting for accessory status changes. If true then accessory status changes will not be logged."
52
- },
53
42
  "debug": {
54
43
  "title": "Debug Logging",
55
44
  "type": "boolean",
@@ -59,6 +48,17 @@
59
48
  "title": "Disable Plugin",
60
49
  "type": "boolean",
61
50
  "description": "If true, the plugin will remove all accessories and not load the plugin on restart."
51
+ },
52
+ "disableDeviceLogging": {
53
+ "type": "boolean",
54
+ "title": "Disable Device Logging",
55
+ "description": "Global logging setting for accessory status changes. If true then accessory status changes will not be logged."
56
+ },
57
+ "refreshInterval": {
58
+ "title": "Refresh Interval",
59
+ "type": "integer",
60
+ "placeholder": 2,
61
+ "description": "Number of minutes between updates. Must be 2 or more."
62
62
  }
63
63
  }
64
64
  },
@@ -66,14 +66,14 @@
66
66
  {
67
67
  "type": "fieldset",
68
68
  "title": "Required Settings",
69
- "items": ["username", "password", "clientId", "clientSecret"]
69
+ "items": ["username", "password", "clientId", "clientSecret", "debug", "disablePlugin"]
70
70
  },
71
71
  {
72
72
  "type": "fieldset",
73
- "title": "Optional Settings",
74
- "description": "Optional settings for the plugin, including global logging settings.",
73
+ "title": "Advanced Settings",
74
+ "description": "Advanced settings for the plugin, including refresh options.",
75
75
  "expandable": true,
76
- "items": ["refreshInterval", "disableDeviceLogging", "debug", "disablePlugin"]
76
+ "items": ["disableDeviceLogging", "refreshInterval"]
77
77
  }
78
78
  ]
79
79
  }
package/lib/index.js CHANGED
@@ -38,11 +38,12 @@ class FlumePlatform {
38
38
 
39
39
  // Log some environment info for debugging
40
40
  this.log(
41
- '%s v%s | Node %s | HB v%s%s...',
41
+ '%s v%s | Node %s | HB v%s | HAPNodeJS v%s%s...',
42
42
  this.lang.initialising,
43
43
  plugin.version,
44
44
  process.version,
45
45
  api.serverVersion,
46
+ api.hap.HAPLibraryVersion ? api.hap.HAPLibraryVersion() : '?',
46
47
  config.plugin_map
47
48
  ? ' | HOOBS v3'
48
49
  : require('os')
@@ -9,10 +9,10 @@ module.exports = {
9
9
  password: '',
10
10
  clientId: '',
11
11
  clientSecret: '',
12
- refreshInterval: 1,
13
- disableDeviceLogging: false,
14
12
  debug: false,
15
13
  disablePlugin: false,
14
+ disableDeviceLogging: false,
15
+ refreshInterval: 1,
16
16
  platform: 'Flume'
17
17
  },
18
18
 
@@ -45,7 +45,7 @@ module.exports = {
45
45
  'This plugin has been made with ♥ by bwp91 from the UK!',
46
46
  'Check out my other Homebridge plugins! https://github.com/bwp91',
47
47
  'Have time to give this plugin a review? https://bit.ly/hb-flume-review',
48
- "This plugin needs it's first ☆ rating on HOOBS! https://bit.ly/hb-flume-review",
48
+ 'This plugin currently has a 4☆ rating on HOOBS! http://bit.ly/hb-flume-review',
49
49
  'Want to see this plugin in your own language? Let me know!'
50
50
  ]
51
51
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-flume",
3
3
  "alias": "Flume",
4
- "version": "1.2.1",
4
+ "version": "1.2.5",
5
5
  "author": {
6
6
  "name": "Ben Potter",
7
7
  "email": "bwp91@icloud.com"
@@ -23,8 +23,8 @@
23
23
  "water leak detector"
24
24
  ],
25
25
  "engines": {
26
- "homebridge": "^1.3.8",
27
- "node": "^14.18.2 || ^16.13.1"
26
+ "homebridge": "^1.4.0",
27
+ "node": "^14.18.3 || ^16.13.2"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "dependencies": {
55
55
  "@homebridge/plugin-ui-utils": "^0.0.19",
56
- "axios": "^0.24.0",
56
+ "axios": "^0.25.0",
57
57
  "jwt-decode": "^3.1.2"
58
58
  },
59
59
  "prettier": {