Skip to content

Commit

Permalink
v1.12.7 (#288)
Browse files Browse the repository at this point in the history
## [Version 1.12.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.7) (2022-03-07)

## What's Changed

- Seperated Color Bulb and Strip Lights
  - Strip Lights no longer support Adaptive Lighting.
    - Adaptive Lighting requires Color Temperature, which Strip Lights do not support.
- Seperated Meter and Meter Plus for BLE purposes.
- Housekeeping and updated dependencies.

**Full Changelog**: v1.12.6...v1.12.7
  • Loading branch information
donavanbecker authored Mar 8, 2022
1 parent 35cbb12 commit c8e1905
Show file tree
Hide file tree
Showing 17 changed files with 1,630 additions and 258 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

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

## [Version 1.12.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.7) (2022-03-07)

## What's Changed

- Seperated Color Bulb and Strip Lights
- Strip Lights no longer support Adaptive Lighting.
- Adaptive Lighting requires Color Temperature, which Strip Lights do not support.
- Seperated Meter and Meter Plus for BLE purposes.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.12.6...v1.12.7

## [Version 1.12.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.6) (2022-03-04)

## What's Changed
Expand Down
19 changes: 14 additions & 5 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
{
"title": "Meter Plus (US)",
"enum": [
"Meter Plus (US)"
"MeterPlus"
]
},
{
Expand Down Expand Up @@ -174,7 +174,15 @@
"title": "Enable Bluetooth Low Energy (BLE) Connection",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Bot' || model.options.devices[arrayIndices].configDeviceType === 'Motion Sensor' || model.options.devices[arrayIndices].configDeviceType === 'Contact Sensor'));"
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Bot' || model.options.devices[arrayIndices].configDeviceType === 'Motion Sensor' || model.options.devices[arrayIndices].configDeviceType === 'Contact Sensor'));"
}
},
"customBLEaddress": {
"title": "Custom BLE Address",
"type": "string",
"placeholder": "81F3UT59513F",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].ble);"
}
},
"scanDuration": {
Expand Down Expand Up @@ -312,14 +320,14 @@
"title": "Hide Meter's Temperature Sensor",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Meter' && model.options.devices[arrayIndices].deviceId);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus') && model.options.devices[arrayIndices].deviceId);"
}
},
"hide_humidity": {
"title": "Hide Meter's Humidity Sensor",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Meter' && model.options.devices[arrayIndices].deviceId);"
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus') && model.options.devices[arrayIndices].deviceId);"
}
}
}
Expand Down Expand Up @@ -487,7 +495,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].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].configDeviceType === 'Strip Light') && model.options.devices[arrayIndices].deviceId);"
}
},
"adaptiveLightingShift": {
Expand Down Expand Up @@ -971,6 +979,7 @@
"options.devices[].configDeviceType",
"options.devices[].offline",
"options.devices[].ble",
"options.devices[].customBLEaddress",
"options.devices[].scanDuration",
"options.devices[].bot.mode",
"options.devices[].bot.deviceType",
Expand Down
Loading

0 comments on commit c8e1905

Please sign in to comment.