Skip to content

Commit

Permalink
v1.2.1 (#102)
Browse files Browse the repository at this point in the history
## [Version 1.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-24)

## What's Changed
* Fixed Bug: Curtains alternate between open/close state. [#85](#85)
* Fixed Bug: Meter not working with BLE. [#110](#110)
* Housekeeping and updated dependencies.

**Full Changelog**: v1.2.0...v1.2.1


Fixed #110
Fixed #85
  • Loading branch information
donavanbecker authored Nov 25, 2021
1 parent b6770c6 commit 642b2aa
Show file tree
Hide file tree
Showing 23 changed files with 301 additions and 591 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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

## [Version 1.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-24)

## What's Changed
* Fixed Bug: Curtains alternate between open/close state. [#85](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/85)
* Fixed Bug: Meter not working with BLE. [#110](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/110)
* Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.2.0...v1.2.1

## [Version 1.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-19)

## What's Changed
Expand Down
77 changes: 40 additions & 37 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
"configDeviceName": {
"title": "Device Name",
"type": "string",
"placeholder": "Bot",
"placeholder": "SwitchBot",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].ble);"
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].ble && !model.options.devices[arrayIndices].hide_device);"
}
},
"hide_device": {
"title": "Hide Device",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].ble);"
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId);"
}
},
"configDeviceType": {
Expand Down Expand Up @@ -243,34 +243,31 @@
"curtain": {
"type": "object",
"properties": {
"disable_group": {
"title": "Disable Grouping",
"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);"
}
},
"hide_lightsensor": {
"title": "Hide Curtain's Light Sensor",
"type": "boolean",
"set_minStep": {
"title": "Set Minimum Step",
"type": "number",
"placeholder": "1",
"description": "Sets the minimum steps that curtain allows. So if set to 20, it would allow you to set the curtain 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 === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_minlux": {
"title": "Set Min Lux",
"set_min": {
"title": "Set Minimum Open State",
"type": "number",
"placeholder": "1",
"placeholder": "0",
"description": "Sets the minimum percentage before needed to set Curtain to Open",
"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 && !model.options.devices[arrayIndices].curtain.hide_lightsensor);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_maxlux": {
"title": "Set Max Lux",
"set_max": {
"title": "Set Maximum Close State",
"type": "number",
"placeholder": "6001",
"placeholder": "100",
"description": "Sets the maximum percentage before needing to set Curtain to Closed",
"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 && !model.options.devices[arrayIndices].curtain.hide_lightsensor);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"refreshRate": {
Expand All @@ -283,28 +280,34 @@
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"set_minStep": {
"title": "Set Min Step",
"type": "number",
"placeholder": "1",
"disable_group": {
"title": "Disable Grouping",
"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);"
}
},
"set_min": {
"title": "Set Min",
"type": "number",
"placeholder": "0",
"hide_lightsensor": {
"title": "Hide Curtain's 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);"
}
},
"set_max": {
"title": "Set Max",
"set_minlux": {
"title": "Set Min Lux",
"type": "number",
"placeholder": "100",
"placeholder": "1",
"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);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].curtain.hide_lightsensor);"
}
},
"set_maxlux": {
"title": "Set Max Lux",
"type": "number",
"placeholder": "6001",
"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 && !model.options.devices[arrayIndices].curtain.hide_lightsensor);"
}
}
}
Expand Down Expand Up @@ -713,14 +716,14 @@
"options.devices[].meter.unit",
"options.devices[].humidifier.set_minStep",
"options.devices[].humidifier.hide_temperature",
"options.devices[].curtain.set_minStep",
"options.devices[].curtain.set_min",
"options.devices[].curtain.set_max",
"options.devices[].curtain.refreshRate",
"options.devices[].curtain.disable_group",
"options.devices[].curtain.hide_lightsensor",
"options.devices[].curtain.set_minlux",
"options.devices[].curtain.set_maxlux",
"options.devices[].curtain.refreshRate",
"options.devices[].curtain.set_minStep",
"options.devices[].curtain.set_min",
"options.devices[].curtain.set_max",
"options.devices[].contact.hide_lightsensor",
"options.devices[].contact.hide_motionsensor",
"options.devices[].colorbulb.set_minStep"
Expand Down
Loading

0 comments on commit 642b2aa

Please sign in to comment.