Skip to content

Commit

Permalink
v1.4.0 (#142)
Browse files Browse the repository at this point in the history
## [Version 1.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.4.0) (2021-12-15)

## What's Changed
* Added Status Messages to logs for discoverDevices request.
* Added Cached Status to IR device, Status will be saved to accessory context and restored on restart.
* Added Option `Offline as Off` to be able set the device as off, if API reports offline.
* Removed Meter Unit Config Option as it was confusing and probably never used.
* Housekeeping and updated dependencies.

**Full Changelog**: v1.3.0...v1.4.0
  • Loading branch information
donavanbecker committed Dec 16, 2021
1 parent 41b736a commit e0584e2
Show file tree
Hide file tree
Showing 24 changed files with 877 additions and 491 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

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

## [Version 1.3.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.3.0) (2021-12-2)
## [Version 1.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.4.0) (2021-12-15)

## What's Changed
* Added Status Messages to logs for discoverDevices request.
* Added Cached Status to IR device, Status will be saved to accessory context and restored on restart.
* Added Option `Offline as Off` to be able set the device as off, if API reports offline.
* Removed Meter Unit Config Option as it was confusing and probably never used.
* Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.3.0...v1.4.0

## [Version 1.3.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.3.0) (2021-12-02)

## What's Changed
* Added Adpative Lighting to Color Bulb
Expand Down
37 changes: 12 additions & 25 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
"hide_device": {
"title": "Hide Device",
"type": "boolean",
"description": "If true then devices that are reported as offline will be shown as off in HomeKit.",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId);"
}
},
"offline": {
"title": "Offline as Off",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId);"
}
Expand Down Expand Up @@ -196,27 +204,6 @@
"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);"
}
},
"unit": {
"title": "Convert your Meter's Temperature to Celsius or Fahrenheit",
"type": "number",
"oneOf": [
{
"title": "Celsius",
"enum": [
0
]
},
{
"title": "Fahrenheit",
"enum": [
1
]
}
],
"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 && !model.options.devices[arrayIndices].meter.hide_temperature);"
}
}
}
},
Expand Down Expand Up @@ -561,14 +548,14 @@
"type": "object",
"properties": {
"swing_mode": {
"title": "Enable Swing Mode by Device ID",
"title": "Enable Swing Mode",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && !model.options.irdevices[arrayIndices].hide_device && (model.options.irdevices[arrayIndices].configRemoteType === 'Fan' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY Fan') && model.options.irdevices[arrayIndices].deviceId);"
}
},
"rotation_speed": {
"title": "Enable Rotation Speed by Device ID",
"title": "Enable Rotation Speed",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && !model.options.irdevices[arrayIndices].hide_device && (model.options.irdevices[arrayIndices].configRemoteType === 'Fan' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY Fan') && model.options.irdevices[arrayIndices].deviceId);"
Expand Down Expand Up @@ -643,7 +630,7 @@
"type": "string",
"placeholder": "Off",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType === 'Others' && model.options.irdevices[arrayIndices].deviceId && model.options.irdevices[arrayIndices].other && !model.options.irdevices[arrayIndices].other.deviceType);"
"functionBody": "return (model.options && model.options.irdevices && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType === 'Others' && model.options.irdevices[arrayIndices].deviceId && model.options.irdevices[arrayIndices].other && model.options.irdevices[arrayIndices].other.deviceType);"
}
}
}
Expand Down Expand Up @@ -716,13 +703,13 @@
"options.devices[].configDeviceName",
"options.devices[].deviceId",
"options.devices[].hide_device",
"options.devices[].offline",
"options.devices[].ble",
"options.devices[].configDeviceType",
"options.devices[].bot.mode",
"options.devices[].bot.deviceType",
"options.devices[].meter.hide_temperature",
"options.devices[].meter.hide_humidity",
"options.devices[].meter.unit",
"options.devices[].humidifier.set_minStep",
"options.devices[].humidifier.hide_temperature",
"options.devices[].curtain.set_minStep",
Expand Down
6 changes: 5 additions & 1 deletion homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
<th scope="row">Firmware Version</th>
<td id="firmwareRevision"></td>
</tr>

<tr>
<th scope="row">Device Type</th>
<td id="deviceType"></td>
</tr>
<tr>
<th scope="row">Connection Type</th>
<td id="connectionType"></td>
Expand Down Expand Up @@ -173,6 +176,7 @@ <h5>Help/About</h5>
document.getElementById('deviceID').innerHTML = context.deviceID
document.getElementById('model').innerHTML = context.model
document.getElementById('firmwareRevision').innerHTML = context.firmwareRevision || 'N/A'
document.getElementById('deviceType').innerHTML = context.deviceType
document.getElementById('connectionType').innerHTML = context.connectionType
document.getElementById('deviceTable').style.display = 'inline-table'
homebridge.hideSpinner()
Expand Down
Loading

0 comments on commit e0584e2

Please sign in to comment.