Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.4.0 #629

Merged
merged 15 commits into from
Dec 27, 2022
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [Version 2.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.4.0) (2022-12-27)

## What's Changed

- Added a new `Bot` Device Type `Multi-Press`, Thanks [@alvst](https://github.com/alvst). [#628](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/628)
- Added `maxRetry` option for `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#631](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/631)
- Fix max retry option for `Bot`, `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#630](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/628)
- Moved `maxRetry` option from `Bot` level to overall `configDeviceType` level.
- **If you had this set for your `Bot` you will have to update this config.**
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v2.3.2....v2.4.0

## [Version 2.3.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.2) (2022-12-16)

## What's Changed
Expand Down
35 changes: 24 additions & 11 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@
"title": "Color Bulb",
"enum": ["Color Bulb"]
},
{
"title": "Ceiling Light",
"enum": ["Ceiling Light"]
},
{
"title": "Ceiling Light Pro",
"enum": ["Ceiling Light Pro"]
},
{
"title": "Humidifier",
"enum": ["Humidifier"]
Expand Down Expand Up @@ -180,7 +188,7 @@
}
},
"scanDuration": {
"title": "BLE Scan Duration (Default is 1 Second)",
"title": "Scan Duration (Default is 1 Second) for BLE",
"type": "number",
"placeholder": 1,
"condition": {
Expand All @@ -201,8 +209,13 @@
{
"title": "Switch",
"enum": ["switch"]
},
{
"title": "Multi-Press",
"enum": ["multipress"]
}
],
"description": "Press Mode presses one time per 'On' state in the Home App/API. Switch Mode allows you to set how many presses occur when the device is set to 'On'. Multi-Press allows you to queue up multiple button presses. It creates a queue by counting each time the device is set to 'On'. It is most useful for scripting with cURL requests or other API calls. Multi-Press only works when using OpenAPI.",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Bot' && model.options.devices[arrayIndices].deviceId);"
}
Expand Down Expand Up @@ -281,14 +294,6 @@
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Bot' && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].bot && model.options.devices[arrayIndices].bot.mode && model.options.devices[arrayIndices].bot.doublePress > 1);"
}
},
"maxRetry": {
"title": "Max Retries",
"type": "number",
"placeholder": "5",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Bot' && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].bot && model.options.devices[arrayIndices].bot.mode);"
}
}
}
},
Expand Down Expand Up @@ -534,6 +539,14 @@
}
}
},
"maxRetry": {
"title": "Max Retries for BLE",
"type": "number",
"placeholder": "5",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && (model.options.devices[arrayIndices].connectionType === 'BLE' || model.options.devices[arrayIndices].connectionType === 'BLE/OpenAPI') && (model.options.devices[arrayIndices].configDeviceType === 'Bot' || model.options.devices[arrayIndices].configDeviceType === 'Robot Vacuum Cleaner S1' || model.options.devices[arrayIndices].configDeviceType === 'Robot Vacuum Cleaner S1 Plus' || model.options.devices[arrayIndices].configDeviceType === 'Strip Light' || model.options.devices[arrayIndices].configDeviceType === 'Plug' || model.options.devices[arrayIndices].configDeviceType === 'Plug Mini (JP)' || model.options.devices[arrayIndices].configDeviceType === 'Plug Mini (US)' || model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Color Bulb' || model.options.devices[arrayIndices].configDeviceType === 'Ceiling Light' || model.options.devices[arrayIndices].configDeviceType === 'Ceiling Light Pro'));"
}
},
"mqttURL": {
"title": "MQTT URL",
"type": "string",
Expand Down Expand Up @@ -973,7 +986,7 @@
]
}
},
"required": ["name", "logging"]
"required": ["name", "logging"]
}
}
},
Expand Down Expand Up @@ -1006,12 +1019,12 @@
"options.devices[].configDeviceType",
"options.devices[].connectionType",
"options.devices[].scanDuration",
"options.devices[].maxRetry",
"options.devices[].bot.mode",
"options.devices[].bot.deviceType",
"options.devices[].bot.allowPush",
"options.devices[].bot.doublePress",
"options.devices[].bot.pushRatePress",
"options.devices[].bot.maxRetry",
"options.devices[].meter.hide_temperature",
"options.devices[].meter.hide_humidity",
"options.devices[].humidifier.set_minStep",
Expand Down
Loading