homebridge-flume 0.3.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  All notable changes to homebridge-flume will be documented in this file.
4
4
 
5
+ ## 0.5.0 (2021-11-23)
6
+
7
+ ### Added
8
+
9
+ - Make use of the debug logging option for HTTP responses
10
+
11
+ ### Changed
12
+
13
+ - `client_id` and `client_secret` config options changed to `clientId` and `clientSecret` for consistency
14
+
15
+ ## 0.4.0 (2021-11-23)
16
+
17
+ ### Added
18
+
19
+ - The plugin will remove 'stale' accessories that don't appear in the obtained device list
20
+
21
+ ## 0.3.1 (2021-11-23)
22
+
23
+ ### Fixed
24
+
25
+ - Some logging references to Thermobit rather than Flume
26
+
5
27
  ## 0.3.0 (2021-11-22)
6
28
 
7
29
  Changed some configuration options
@@ -12,4 +34,4 @@ Converted from accessory plugin to platform plugin
12
34
 
13
35
  ## 0.1.0 (2021-11-22)
14
36
 
15
- Initial release
37
+ Initial release
package/README.md CHANGED
@@ -1,32 +1,49 @@
1
- # homebridge-flume
2
-
3
- # Configuration
4
-
5
- Configuration sample:
6
-
7
- ```
8
- {
9
- "name": "Flume Water Monitor",
10
- "username": "user@domain.com",
11
- "password": "password",
12
- "client_id": "12345678901234567890",
13
- "client_secret": "1234567890",
14
- "refreshInterval": 1,
15
- "threshold": 0.1,
16
- "platform": "Flume"
17
- }
18
- ```
19
-
20
- Fields:
21
-
22
- - "username": Your username for accessing the Flume site at https://portal.flumetech.com/ (required)
23
- - "password": Your password for accessing the Flume site (required)
24
- - "client_id": Your Client ID for API access, found in Settings on the Flume site (required)
25
- - "client_secret": Your Client Secret for API access, found in Settings on the Flume site (required)
26
- - "refreshInterval": Number of minutes between updates. Defaults to 1 minute. API has a cap of 120 calls per hour. (optional)
27
- - "threshold": Set to ignore a steady water draw below this value. Defaults to zero (0.0) gallons. (optional)
28
-
29
- # Retrieving API Login Credentials
30
-
31
- You'll need to get your API Access Client ID and Client Secret from Flume's site at https://portal.flumetech.com/
32
- This guide offers the steps to take: https://flumetech.readme.io/reference#accessing-the-api
1
+ <span align="center">
2
+
3
+ # homebridge-flume
4
+
5
+ Homebridge plugin to integrate Flume devices into HomeKit
6
+
7
+ [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
8
+ [![npm](https://img.shields.io/npm/v/homebridge-flume/latest?label=latest)](https://www.npmjs.com/package/homebridge-flume)
9
+ [![npm](https://img.shields.io/npm/v/homebridge-flume/beta?label=beta)](https://github.com/bwp91/homebridge-flume/wiki/Beta-Version)
10
+ [![npm](https://img.shields.io/npm/dt/homebridge-flume)](https://www.npmjs.com/package/homebridge-flume)
11
+ [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
12
+ [![Discord](https://img.shields.io/discord/784827113378676736?color=728ED5&logo=discord&label=bwp91-discord)](https://discord.com/channels/784827113378676736/784827113378676739)
13
+ [![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=hb-discord)](https://discord.com/channels/432663330281226270/742733745743855627)
14
+
15
+ </span>
16
+
17
+ ### Plugin Information
18
+
19
+ - This plugin allows you to view and control your Flume devices within HomeKit.
20
+
21
+ ### Prerequisites
22
+
23
+ - To use this plugin, you will need to already have [Homebridge](https://homebridge.io) (at least v1.3) or [HOOBS](https://hoobs.org) (at least v4.1) installed. Refer to the links for more information and installation instructions.
24
+ - Whilst it is recommended to use [Node](https://nodejs.org/en/) v16, the plugin supports v12 and v14 as per the [Homebridge guidelines](https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js).
25
+
26
+ ### Setup
27
+
28
+ - [Installation](https://github.com/bwp91/homebridge-flume/wiki/Installation)
29
+ - [Configuration](https://github.com/bwp91/homebridge-flume/wiki/Configuration)
30
+ - [Beta Version](https://github.com/bwp91/homebridge-flume/wiki/Beta-Version)
31
+ - [Node Version](https://github.com/bwp91/homebridge-flume/wiki/Node-Version)
32
+ - [Uninstallation](https://github.com/bwp91/homebridge-flume/wiki/Uninstallation)
33
+
34
+ ### Help/About
35
+
36
+ - [Common Errors](https://github.com/bwp91/homebridge-flume/wiki/Common-Errors)
37
+ - [Support Request](https://github.com/bwp91/homebridge-flume/issues/new/choose)
38
+ - [Changelog](https://github.com/bwp91/homebridge-flume/blob/latest/CHANGELOG.md)
39
+ - [About Me](https://github.com/sponsors/bwp91)
40
+
41
+ ### Credits
42
+
43
+ - This is a forked rewrite of the [homebridge-flume-water-sensor](https://www.npmjs.com/package/homebridge-flume-water-sensor) plugin by @weallknowwhoisatfaulthere.
44
+ - To the creators/contributors of [Homebridge](https://homebridge.io) who make this plugin possible.
45
+
46
+ ### Disclaimer
47
+
48
+ - I am in no way affiliated with Flume and this plugin is a personal project that I maintain in my free time.
49
+ - Use this plugin entirely at your own risk - please see licence for more information.
@@ -17,75 +17,69 @@
17
17
  "title": "Username",
18
18
  "type": "string",
19
19
  "required": true,
20
- "description": "Your username for accessing the Flume site at https://portal.flumetech.com"
20
+ "description": "Your Flume username."
21
21
  },
22
22
  "password": {
23
23
  "title": "Password",
24
24
  "type": "string",
25
25
  "required": true,
26
- "description": "Your password for accessing the Flume site"
26
+ "description": "Your Flume password."
27
27
  },
28
- "client_id": {
28
+ "clientId": {
29
29
  "title": "Client ID",
30
30
  "type": "string",
31
- "placeholder": "12345678901234567890",
31
+ "placeholder": "1234567890ABCD",
32
32
  "required": true,
33
- "description": "Your Client ID for API access, found in Settings on the Flume site"
33
+ "description": "Your Flume Client ID, found at https://portal.flumetech.com."
34
34
  },
35
- "client_secret": {
35
+ "clientSecret": {
36
36
  "title": "Client Secret",
37
37
  "type": "string",
38
- "placeholder": "1234567890",
38
+ "placeholder": "1234567890ABCDEFGHIJ",
39
39
  "required": true,
40
- "description": "Your Client Secret for API access, found in Settings on the Flume site"
40
+ "description": "Your Flume Client Secret, found at https://portal.flumetech.com."
41
41
  },
42
42
  "refreshInterval": {
43
- "title": "Refresh interval",
43
+ "title": "Refresh Interval",
44
44
  "type": "integer",
45
45
  "placeholder": 1,
46
- "description": "Number of minutes between updates. API has a cap of 120 calls per hour."
46
+ "description": "Number of minutes between updates. Must be 1 or more."
47
47
  },
48
48
  "threshold": {
49
- "title": "Adjustment for False Positives",
49
+ "title": "Threshold",
50
50
  "type": "number",
51
51
  "placeholder": 0,
52
- "description": "Set to ignore a steady water draw below this value (gallons)."
52
+ "description": "Ignore a steady water draw below this value in gallons per refresh interval. Must be 0 or more."
53
53
  },
54
54
  "disableDeviceLogging": {
55
- "type": "boolean",
56
- "title": "Disable Device Logging",
57
- "description": "Global logging setting for accessory status changes. If true then accessory status changes will not be logged."
58
- },
59
- "debug": {
60
- "title": "Debug Logging",
61
- "type": "boolean",
62
- "description": "Global logging setting for the plugin. If true then debug information will be added to the log."
63
- },
64
- "disablePlugin": {
65
- "title": "Disable Plugin",
66
- "type": "boolean",
67
- "description": "If true, the plugin will remove all accessories and not load the plugin on restart."
68
- }
55
+ "type": "boolean",
56
+ "title": "Disable Device Logging",
57
+ "description": "Global logging setting for accessory status changes. If true then accessory status changes will not be logged."
58
+ },
59
+ "debug": {
60
+ "title": "Debug Logging",
61
+ "type": "boolean",
62
+ "description": "Global logging setting for the plugin. If true then debug information will be added to the log."
63
+ },
64
+ "disablePlugin": {
65
+ "title": "Disable Plugin",
66
+ "type": "boolean",
67
+ "description": "If true, the plugin will remove all accessories and not load the plugin on restart."
68
+ }
69
69
  }
70
70
  },
71
71
  "layout": [
72
72
  {
73
73
  "type": "fieldset",
74
74
  "title": "Required Settings",
75
- "items": ["username", "password", "client_id", "client_secret"]
75
+ "items": ["username", "password", "clientId", "clientSecret"]
76
76
  },
77
77
  {
78
78
  "type": "fieldset",
79
79
  "title": "Optional Settings",
80
80
  "description": "Optional settings for the plugin, including global logging settings.",
81
81
  "expandable": true,
82
- "items": [
83
- "refreshInterval",
84
- "threshold",
85
- "disableDeviceLogging",
86
- "debug",
87
- "disablePlugin"
88
- ]
82
+ "items": ["refreshInterval", "threshold", "disableDeviceLogging", "debug", "disablePlugin"]
89
83
  }
90
84
  ]
91
85
  }
@@ -15,8 +15,8 @@ module.exports = class connectionHTTP {
15
15
  this.log = platform.log
16
16
  this.username = platform.config.username
17
17
  this.password = platform.config.password
18
- this.client_id = platform.config.client_id
19
- this.client_secret = platform.config.client_secret
18
+ this.clientId = platform.config.clientId
19
+ this.clientSecret = platform.config.clientSecret
20
20
  }
21
21
 
22
22
  async obtainToken () {
@@ -24,8 +24,8 @@ module.exports = class connectionHTTP {
24
24
  // Generate the JSON data to send
25
25
  const body = {
26
26
  grant_type: 'password',
27
- client_id: this.client_id,
28
- client_secret: this.client_secret,
27
+ client_id: this.clientId,
28
+ client_secret: this.clientSecret,
29
29
  username: this.username,
30
30
  password: this.password
31
31
  }
@@ -38,7 +38,7 @@ module.exports = class connectionHTTP {
38
38
 
39
39
  // Check to see we got a response
40
40
  if (!res.data) {
41
- throw new Error(this.lang.noToken)
41
+ throw new Error(this.lang.noDataReceived)
42
42
  }
43
43
 
44
44
  /*
@@ -62,6 +62,11 @@ module.exports = class connectionHTTP {
62
62
  }
63
63
  */
64
64
 
65
+ // Log the response if in debug mode
66
+ if (this.debug) {
67
+ this.log('[HTTP obtainToken()] %s.', JSON.stringify(res.data))
68
+ }
69
+
65
70
  // Make the token available in other functions
66
71
  this.accessToken = res.data.data[0].access_token
67
72
  this.refreshToken = res.data.data[0].refresh_token
@@ -84,7 +89,7 @@ module.exports = class connectionHTTP {
84
89
  } catch (err) {
85
90
  if (err.code && this.consts.httpRetryCodes.includes(err.code)) {
86
91
  // Retry if another attempt could be successful
87
- this.log.warn('[HTTP login()] %s [%s].', this.lang.httpRetry, err.code)
92
+ this.log.warn('[HTTP obtainToken()] %s [%s].', this.lang.httpRetry, err.code)
88
93
  await this.funcs.sleep(30000)
89
94
  return await this.login()
90
95
  } else {
@@ -95,11 +100,16 @@ module.exports = class connectionHTTP {
95
100
 
96
101
  async renewToken () {
97
102
  try {
103
+ // Check we have a refresh token
104
+ if (!this.refreshToken) {
105
+ throw new Error(this.lang.noRefreshToken)
106
+ }
107
+
98
108
  // Generate the JSON data to send
99
109
  const body = {
100
110
  grant_type: 'refresh_token',
101
- client_id: this.client_id,
102
- client_secret: this.client_secret,
111
+ client_id: this.clientId,
112
+ client_secret: this.clientSecret,
103
113
  refresh_token: this.refreshToken
104
114
  }
105
115
  const now = Date.now()
@@ -111,7 +121,12 @@ module.exports = class connectionHTTP {
111
121
 
112
122
  // Check to see we got a response
113
123
  if (!res.data) {
114
- throw new Error(this.lang.noToken)
124
+ throw new Error(this.lang.noDataReceived)
125
+ }
126
+
127
+ // Log the response if in debug mode
128
+ if (this.debug) {
129
+ this.log('[HTTP renewToken()] %s.', JSON.stringify(res.data))
115
130
  }
116
131
 
117
132
  /*
@@ -142,11 +157,11 @@ module.exports = class connectionHTTP {
142
157
  } catch (err) {
143
158
  if (err.code && this.consts.httpRetryCodes.includes(err.code)) {
144
159
  // Retry if another attempt could be successful
145
- this.log.warn('[HTTP login()] %s [%s].', this.lang.httpRetry, err.code)
160
+ this.log.warn('[HTTP renewToken()] %s [%s].', this.lang.httpRetry, err.code)
146
161
  await this.funcs.sleep(30000)
147
162
  return await this.login()
148
163
  } else {
149
- throw new Error('[HTTP refreshToken()] ' + err.message)
164
+ throw new Error('[HTTP renewToken()] ' + err.message)
150
165
  }
151
166
  }
152
167
  }
@@ -154,8 +169,8 @@ module.exports = class connectionHTTP {
154
169
  async getDevices () {
155
170
  try {
156
171
  // Check we have a user id
157
- if (!this.userId) {
158
- throw new Error('No user id has been retrieved')
172
+ if (!this.userId || !this.accessToken) {
173
+ throw new Error(this.lang.noUserId)
159
174
  }
160
175
 
161
176
  // Perform the HTTP request
@@ -166,14 +181,19 @@ module.exports = class connectionHTTP {
166
181
 
167
182
  // Check to see we got a response
168
183
  if (!res.data) {
169
- throw new Error('No data received')
184
+ throw new Error(this.lang.noDataReceived)
185
+ }
186
+
187
+ // Log the response if in debug mode
188
+ if (this.debug) {
189
+ this.log('[HTTP getDevices()] %s.', JSON.stringify(res.data))
170
190
  }
171
191
 
172
192
  return res.data.data
173
193
  } catch (err) {
174
194
  if (err.code && this.consts.httpRetryCodes.includes(err.code)) {
175
195
  // Retry if another attempt could be successful
176
- this.log.warn('[HTTP login()] %s [%s].', this.lang.httpRetry, err.code)
196
+ this.log.warn('[HTTP getDevices()] %s [%s].', this.lang.httpRetry, err.code)
177
197
  await this.funcs.sleep(30000)
178
198
  return await this.login()
179
199
  } else {
@@ -212,6 +232,16 @@ module.exports = class connectionHTTP {
212
232
  }
213
233
  )
214
234
 
235
+ // Check to see we got a response
236
+ if (!res.data) {
237
+ throw new Error(this.lang.noDataReceived)
238
+ }
239
+
240
+ // Log the response if in debug mode
241
+ if (this.debug) {
242
+ this.log('[HTTP getDevice()] %s.', JSON.stringify(res.data))
243
+ }
244
+
215
245
  // Parse the response
216
246
  return res.data.data[0]
217
247
  }
@@ -6,14 +6,13 @@ module.exports = class deviceValve {
6
6
  constructor (platform, accessory) {
7
7
  // Set up variables from the platform
8
8
  this.accessory = accessory
9
- this.disableDeviceLogging = platform.config.disableDeviceLogging
10
9
  this.funcs = platform.funcs
11
10
  this.threshold = platform.config.threshold
12
11
  this.hapChar = platform.api.hap.Characteristic
13
12
  this.hapErr = platform.api.hap.HapStatusError
14
13
  this.hapServ = platform.api.hap.Service
15
14
  this.lang = platform.lang
16
- this.log = platform.log
15
+ this.log = platform.config.disableDeviceLogging ? () => {} : platform.log
17
16
  this.name = accessory.displayName
18
17
  this.platform = platform
19
18
  this.refreshInterval = platform.config.refreshInterval
@@ -27,9 +26,8 @@ module.exports = class deviceValve {
27
26
  : 0
28
27
  if (usage > this.threshold) {
29
28
  this.log(
30
- '[%s] %s - [%s] gallons within the last [%s] minutes.',
29
+ '[%s] usage detected - [%s] gallons within the last [%s] minutes.',
31
30
  this.name,
32
- 'usage detected',
33
31
  usage,
34
32
  this.refreshInterval
35
33
  )
@@ -76,6 +76,13 @@
76
76
  </ul>
77
77
  <h4>Credits</h4>
78
78
  <ul>
79
+ <li>
80
+ This is a forked rewrite of the
81
+ <a href="https://www.npmjs.com/package/homebridge-flume-water-sensor" target="_blank"
82
+ >homebridge-flume-water-sensor</a
83
+ >
84
+ plugin by @weallknowwhoisatfaulthere
85
+ </li>
79
86
  <li>
80
87
  To the creators/contributors of
81
88
  <a href="https://homebridge.io" target="_blank">Homebridge</a> who make this plugin possible.
package/lib/index.js CHANGED
@@ -88,8 +88,8 @@ class FlumePlatform {
88
88
  // Begin applying the user's config
89
89
  for (const [key, val] of Object.entries(config)) {
90
90
  switch (key) {
91
- case 'client_id':
92
- case 'client_secret':
91
+ case 'clientId':
92
+ case 'clientSecret':
93
93
  case 'password':
94
94
  case 'username':
95
95
  if (typeof val !== 'string' || val === '') {
@@ -161,8 +161,8 @@ class FlumePlatform {
161
161
  if (
162
162
  !this.config.username ||
163
163
  !this.config.password ||
164
- !this.config.client_id ||
165
- !this.config.client_secret
164
+ !this.config.clientId ||
165
+ !this.config.clientSecret
166
166
  ) {
167
167
  throw new Error(this.lang.noCreds)
168
168
  }
@@ -174,9 +174,11 @@ class FlumePlatform {
174
174
 
175
175
  // Check we have devices we can work with
176
176
  if (!Array.isArray(deviceList) || deviceList.length === 0) {
177
+ this.devicesInHB.forEach(accessory => this.removeAccessory(accessory))
177
178
  throw new Error(this.lang.noDevices)
178
179
  }
179
180
 
181
+ // Initialise each device into Homebridge
180
182
  deviceList.forEach(device => {
181
183
  if (!device.bridge_id) {
182
184
  return
@@ -184,6 +186,13 @@ class FlumePlatform {
184
186
  this.initialiseDevice(device)
185
187
  })
186
188
 
189
+ // Remove any stale accessories that don't appear in the device list
190
+ this.devicesInHB.forEach(accessory => {
191
+ if (!deviceList.find(el => accessory.context.deviceId === el.id)) {
192
+ this.removeAccessory(accessory)
193
+ }
194
+ })
195
+
187
196
  // Set up an initial last sync time
188
197
  this.lastSync = new Date(Date.now() - this.config.refreshInterval * 60000)
189
198
 
@@ -235,7 +244,7 @@ class FlumePlatform {
235
244
  accessory.control.externalUpdate(res)
236
245
  } catch (err) {
237
246
  const eText = this.funcs.parseError(err)
238
- this.log.warn(eText)
247
+ this.log.warn('[%s] %s %s.', accessory.displayName, this.lang.devNotRef, eText)
239
248
  }
240
249
  })
241
250
 
@@ -7,8 +7,8 @@ module.exports = {
7
7
  name: 'Flume',
8
8
  username: '',
9
9
  password: '',
10
- client_id: '',
11
- client_secret: '',
10
+ clientId: '',
11
+ clientSecret: '',
12
12
  refreshInterval: 1,
13
13
  threshold: 0,
14
14
  disableDeviceLogging: false,
@@ -4,7 +4,6 @@
4
4
 
5
5
  module.exports = {
6
6
  accNotFound: 'accessory not found',
7
- accNotReady: 'cannot currently be controlled, see plugin startup logs for any error',
8
7
  brand: 'Flume',
9
8
  cfgDef: 'is not a valid number so using default of',
10
9
  cfgDup: 'will be ignored since another entry with this ID already exists',
@@ -15,10 +14,6 @@ module.exports = {
15
14
  cfgRmv: 'is unused and can be removed',
16
15
  cfgQts: 'should not have quotes around its entry',
17
16
  complete: '✓ Setup complete',
18
- curHeat: 'current heating',
19
- curState: 'current state',
20
- curTarg: 'current target',
21
- curTemp: 'current temperature',
22
17
  devAdd: 'has been added to Homebridge',
23
18
  devInit: 'initialised with id',
24
19
  devNotAdd: 'could not be added to Homebridge as',
@@ -29,36 +24,28 @@ module.exports = {
29
24
  devNotUpdated: 'could not be updated as',
30
25
  devRemove: 'has been removed from Homebridge',
31
26
  disabled: 'To change this, set disablePlugin to false',
32
- disableHTTP: 'Disabling HTTP client as',
33
27
  disabling: 'Disabling plugin',
34
28
  hbVersionFail: 'Your version of Homebridge is too low - please update to v1.3',
35
- httpRetry: 'Unable to reach Thermobit, retrying in 30 seconds',
29
+ httpRetry: 'Unable to reach Flume, retrying in 30 seconds',
36
30
  initialised: 'Plugin initialised. Setting up accessories...',
37
31
  initialising: 'Initialising plugin',
38
- labelHeating: 'heating',
39
- labelIdle: 'idle',
40
- labelMan: 'manual',
41
- labelSch: 'schedule',
42
- noCreds: 'Thermobit username and/or password not configured',
43
- noDevices: 'no data received from Thermobit server whilst obtaining device list',
44
- noTokenExists: 'no Thermobit account token exists',
32
+ noCreds: 'Flume username and/or password and/or client id/secret not configured',
33
+ noDataReceived: 'No data received from request',
34
+ noRefreshToken: 'No refresh token has been retrieved',
35
+ noUserId: 'No user id has been retrieved',
45
36
  pluginNotConf: 'Plugin has not been configured',
46
- receivingUpdate: 'receiving update',
47
- scheduleFailed: 'Program schedule could not be updated as',
48
- scheduleInvalid: 'Not updating program schedule as configuration is invalid or incomplete',
49
- scheduleUpdated: 'Program schedule successfully updated',
50
37
  syncFailed: 'Sync process failed as',
51
38
  updateFail: 'could not be updated as',
52
39
  zWelcome: [
53
40
  "Don't forget to ☆ this plugin on GitHub if you're finding it useful!",
54
- 'Have a feature request? Visit https://bit.ly/hb-thermobit-issues to ask!',
41
+ 'Have a feature request? Visit https://bit.ly/hb-flume-issues to ask!',
55
42
  'Interested in sponsoring this plugin? https://github.com/sponsors/bwp91',
56
43
  "Join the plugin's Discord community! https://discord.gg/cMGhNtZ3tW",
57
44
  'Thanks for using this plugin, I hope you find it helpful!',
58
45
  'This plugin has been made with ♥ by bwp91 from the UK!',
59
46
  'Check out my other Homebridge plugins! https://github.com/bwp91',
60
- 'Have time to give this plugin a review? https://bit.ly/hb-thermobit-review',
61
- "This plugin needs it's first ☆ rating on HOOBS! https://bit.ly/hb-thermobit-review",
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",
62
49
  'Want to see this plugin in your own language? Let me know!'
63
50
  ]
64
51
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-flume",
3
3
  "alias": "Flume",
4
- "version": "0.3.0",
4
+ "version": "0.5.0",
5
5
  "author": {
6
6
  "name": "Ben Potter",
7
7
  "email": "bwp91@icloud.com"
@@ -33,6 +33,24 @@
33
33
  "bugs": {
34
34
  "url": "https://github.com/bwp91/homebridge-flume/issues"
35
35
  },
36
+ "funding": [
37
+ {
38
+ "type": "github",
39
+ "url": "https://github.com/sponsors/bwp91"
40
+ },
41
+ {
42
+ "type": "kofi",
43
+ "url": "https://ko-fi.com/bwp91"
44
+ },
45
+ {
46
+ "type": "patreon",
47
+ "url": "https://www.patreon.com/bwp91"
48
+ },
49
+ {
50
+ "type": "paypal",
51
+ "url": "https://www.paypal.me/BenPotter"
52
+ }
53
+ ],
36
54
  "dependencies": {
37
55
  "@homebridge/plugin-ui-utils": "^0.0.19",
38
56
  "axios": "^0.24.0",