Skip to content

Commit

Permalink
v2.5.0 (#662)
Browse files Browse the repository at this point in the history
## [Version 2.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.0) (2023-01-28)

## What's Changed

- Add Intial Support for Blind Tilt (OpenAPI Only), Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#649](#649)
@dnicolson
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#661](#661)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#633](#633)
- Enhancements to BLE functionality
- Housekeeping and updated dependencies.

**Full Changelog**: v2.4.0....v2.5.0
  • Loading branch information
donavanbecker authored Jan 29, 2023
1 parent dc0ce6e commit 6707892
Show file tree
Hide file tree
Showing 17 changed files with 2,137 additions and 375 deletions.
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.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.0) (2023-01-28)

## What's Changed

- Add Intial Support for Blind Tilt (OpenAPI Only), Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#649](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/649)
@dnicolson
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#661](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/661)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#633](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/633)
- Enhancements to BLE functionality
- Housekeeping and updated dependencies.

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

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

## What's Changed
Expand Down
63 changes: 61 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
"title": "Curtain",
"enum": ["Curtain"]
},
{
"title": "Blind Tilt",
"enum": ["Blind Tilt"]
},
{
"title": "Plug",
"enum": ["Plug"]
Expand Down Expand Up @@ -418,7 +422,7 @@
}
},
"hide_lightsensor": {
"title": "Hide Curtain's Light Sensor",
"title": "Hide Light Sensor",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
Expand All @@ -442,6 +446,51 @@
}
}
},
"blindTilt": {
"type": "object",
"properties": {
"mode": {
"title": "Mapping Mode",
"type": "string",
"oneOf": [
{
"title": "Middle to Up",
"enum": ["up"]
},
{
"title": "Middle to Down",
"enum": ["only_down"]
},
{
"title": "Down-to-Up",
"enum": ["down_and_up"]
},
{
"title": "Up-to-Down",
"enum": ["up_and_down"]
},
{
"title": "Tilt Direction",
"enum": ["use_tilt_for_direction"]
}
],
"description": "Defines how the Home app sliders control the blind tilt.",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'BlindTilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"updateRate": {
"title": "Curtain Update Rate",
"type": "number",
"minimum": 1,
"placeholder": 5,
"description": "Indicates the number of seconds before refreshing Curtain status while updating slide progress.",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
}
}
},
"contact": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -539,12 +588,19 @@
}
}
},
"disableCaching": {
"title": "Disable Caching",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].configDeviceType === 'Curtain');"
}
},
"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'));"
"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' || model.options.devices[arrayIndices].configDeviceType === 'Motion Sensor'));"
}
},
"mqttURL": {
Expand Down Expand Up @@ -1019,6 +1075,7 @@
"options.devices[].configDeviceType",
"options.devices[].connectionType",
"options.devices[].scanDuration",
"options.devices[].disableCaching",
"options.devices[].maxRetry",
"options.devices[].bot.mode",
"options.devices[].bot.deviceType",
Expand All @@ -1039,6 +1096,8 @@
"options.devices[].curtain.hide_lightsensor",
"options.devices[].curtain.set_minlux",
"options.devices[].curtain.set_maxlux",
"options.devices[].blindTilt.mode",
"options.devices[].blindTilt.updateRate",
"options.devices[].contact.hide_lightsensor",
"options.devices[].contact.set_minlux",
"options.devices[].contact.set_maxlux",
Expand Down
2 changes: 1 addition & 1 deletion homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://raw.githubusercontent.com/OpenWonderLabs/homebridge-switchbot/latest/switchbot/Homebridge_x_SwitchBot.svg"
alt="homebridge-switchbot logo"
style="width: 60%" />
style="width: 50%" />
</p>
<div id="pageIntro" style="display: none">
<p class="lead text-center">Thank you for installing<strong> homebridge-switchbot</strong></p>
Expand Down
Loading

0 comments on commit 6707892

Please sign in to comment.