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.5.2 #676

Merged
merged 10 commits into from
Feb 11, 2023
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