@switchbot/homebridge-switchbot 2.10.0-beta.2 → 2.10.1-beta.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,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
4
4
 
5
- ## [Version 2.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.0) (2023-XX-XX)
5
+ ## [Version 2.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.0) (2023-10-31)
6
6
 
7
7
  ## What's Changed
8
8
 
@@ -247,6 +247,13 @@
247
247
  "functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType !== 'Hub 2');"
248
248
  }
249
249
  },
250
+ "webhook": {
251
+ "title": "Enable Webhook",
252
+ "type": "boolean",
253
+ "condition": {
254
+ "functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].connectionType === 'OpenAPI' || model.options.devices[arrayIndices].connectionType === 'BLE/OpenAPI'));"
255
+ }
256
+ },
250
257
  "customBLEaddress": {
251
258
  "title": "Custom BLE Address",
252
259
  "type": "string",
@@ -1433,6 +1440,11 @@
1433
1440
  },
1434
1441
  "uniqueItems": true
1435
1442
  },
1443
+ "webhookURL": {
1444
+ "title": "Webhook URL",
1445
+ "type": "string",
1446
+ "placeholder": "http://${FQDN}:${PORT}/${PATH}"
1447
+ },
1436
1448
  "refreshRate": {
1437
1449
  "title": "Refresh Rate",
1438
1450
  "type": "number",
@@ -1516,6 +1528,7 @@
1516
1528
  "options.devices[].hide_device",
1517
1529
  "options.devices[].configDeviceType",
1518
1530
  "options.devices[].connectionType",
1531
+ "options.devices[].webhook",
1519
1532
  "options.devices[].hub.hide_temperature",
1520
1533
  "options.devices[].hub.hide_humidity",
1521
1534
  "options.devices[].hub.hide_lightsensor",
@@ -1621,6 +1634,7 @@
1621
1634
  "expandable": true,
1622
1635
  "expanded": false,
1623
1636
  "items": [
1637
+ "options.webhookURL",
1624
1638
  {
1625
1639
  "type": "help",
1626
1640
  "helpvalue": "<h5>Refresh Rate</h5><em class='primary-text'>Refresh Rate indicates the number of seconds between polls of SwitchBot API.</em>"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Homebridge SwitchBot",
3
3
  "name": "@switchbot/homebridge-switchbot",
4
- "version": "2.10.0-beta.2",
4
+ "version": "2.10.1-beta.0",
5
5
  "description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
6
6
  "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
7
7
  "license": "ISC",
@@ -68,9 +68,9 @@
68
68
  "node-switchbot": "^1.9.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@types/node": "^20.8.9",
72
- "@typescript-eslint/eslint-plugin": "^6.9.0",
73
- "@typescript-eslint/parser": "^6.9.0",
71
+ "@types/node": "^20.8.10",
72
+ "@typescript-eslint/eslint-plugin": "^6.9.1",
73
+ "@typescript-eslint/parser": "^6.9.1",
74
74
  "eslint": "^8.52.0",
75
75
  "homebridge": "^1.6.1",
76
76
  "nodemon": "^3.0.1",