Skip to content

Commit

Permalink
v2.5.2 (#676)
Browse files Browse the repository at this point in the history
## [Version 2.5.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.2) (2023-02-10)

## What's Changed

- Fixes mappingMode not being read from the config directly, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#667](#667)
- Fixes only_up mode in settings configuration, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#669](#669)
- Removes runStatus check, fixes some logic, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#672](#672)
- Remove unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#675](#675)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#674](#674)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#673](#673) 
- Housekeeping and updated dependencies.

**Full Changelog**: v2.5.1....v2.5.2
  • Loading branch information
donavanbecker authored Feb 11, 2023
1 parent 3aef658 commit 3399bac
Show file tree
Hide file tree
Showing 20 changed files with 337 additions and 226 deletions.
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

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

## [Version 2.5.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.2) (2023-02-10)

## What's Changed

- Fixes mappingMode not being read from the config directly, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#667](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/667)
- Fixes only_up mode in settings configuration, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#669](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/669)
- Removes runStatus check, fixes some logic, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#672](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/672)
- Remove unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#675](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/675)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#674](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/674)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#673](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/673)
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v2.5.1....v2.5.2

## [Version 2.5.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.1) (2023-01-28)

## What's Changed
Expand All @@ -15,10 +29,9 @@ All notable changes to this project will be documented in this file. This projec
## 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
- Enhancements to BLE functionality.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v2.4.0....v2.5.0
Expand Down
66 changes: 64 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@
"oneOf": [
{
"title": "Middle to Up",
"enum": ["up"]
"enum": ["only_up"]
},
{
"title": "Middle to Down",
Expand All @@ -479,6 +479,40 @@
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Blind Tilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_minStep": {
"title": "Set Minimum Step",
"type": "number",
"placeholder": "1",
"description": "Sets the minimum steps that blind tilt allows. So if set to 20, it would allow you to set the blind tilt state to 0, 20, 40, 60, 80, and 100",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Blind Tilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_min": {
"title": "Set Minimum Open State",
"type": "number",
"placeholder": "0",
"description": "Sets the minimum percentage before needed to set Blind Tilt to Open",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Blind Tilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_max": {
"title": "Set Maximum Close State",
"type": "number",
"placeholder": "100",
"description": "Sets the maximum percentage before needing to set Blind Tilt to Closed",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Blind Tilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"hide_lightsensor": {
"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 === 'Blind Tilt' && model.options.devices[arrayIndices].deviceId);"
}
},
"updateRate": {
"title": "Blind Tilt Update Rate",
"type": "number",
Expand Down Expand Up @@ -562,7 +596,7 @@
"type": "number",
"placeholder": "1",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Color Bulb' || model.options.devices[arrayIndices].configDeviceType === 'Strip Light') && model.options.devices[arrayIndices].deviceId);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Color Bulb' && model.options.devices[arrayIndices].deviceId);"
}
},
"adaptiveLightingShift": {
Expand All @@ -576,6 +610,28 @@
}
}
},
"striplight": {
"type": "object",
"properties": {
"set_minStep": {
"title": "Set Min Step",
"type": "number",
"placeholder": "1",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Strip Light' && model.options.devices[arrayIndices].deviceId);"
}
},
"adaptiveLightingShift": {
"title": "Adaptive Lighting Shift",
"type": "number",
"placeholder": "-1",
"description": "The mired for each Adaptive Lighting update will be increased by this value, making the light appear warmer. Set to -1 to remove Adaptive Lighting feature. Must be -1 or more.",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Strip Light' && model.options.devices[arrayIndices].deviceId);"
}
}
}
},
"lock": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1097,6 +1153,10 @@
"options.devices[].curtain.set_minlux",
"options.devices[].curtain.set_maxlux",
"options.devices[].blindTilt.mode",
"options.devices[].blindTilt.set_minStep",
"options.devices[].blindTilt.set_min",
"options.devices[].blindTilt.set_max",
"options.devices[].blindTilt.hide_lightsensor",
"options.devices[].blindTilt.updateRate",
"options.devices[].contact.hide_lightsensor",
"options.devices[].contact.set_minlux",
Expand All @@ -1107,6 +1167,8 @@
"options.devices[].motion.set_maxlux",
"options.devices[].colorbulb.set_minStep",
"options.devices[].colorbulb.adaptiveLightingShift",
"options.devices[].striplight.set_minStep",
"options.devices[].striplight.adaptiveLightingShift",
"options.devices[].lock.hide_contactsensor",
"options.devices[].mqttURL",
"options.devices[].mqttOptions",
Expand Down
Loading

0 comments on commit 3399bac

Please sign in to comment.