Skip to content

Commit

Permalink
v2.2.2 (#549)
Browse files Browse the repository at this point in the history
## [Version 2.2.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.2) (2022-10-22)

## What's Changed

- Changed from `allowPushOn` and `allowPushOff` configs to `disablePushOn` and `disablePushOff` config, so default is to push changes.
  - Removed `disable_power` config in favor of `disablePushOn` and `disablePushOff` config settings.
- Fixed Issue where IR Devices commands wouldn't send commands. [#551](#551), [#553](#553), [#545](#545)
- Issue where plugin would continue to crash homebridge. [#547](#547)
- Fix for node-switchbot showing not installed.
- Housekeeping and updated dependencies.

**Full Changelog**: v2.2.1....v2.2.2
  • Loading branch information
donavanbecker authored Oct 22, 2022
1 parent 9b8d7de commit 7214625
Show file tree
Hide file tree
Showing 27 changed files with 924 additions and 1,012 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

## [Version 2.2.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.2) (2022-10-22)

## What's Changed

- Changed from `allowPushOn` and `allowPushOff` configs to `disablePushOn` and `disablePushOff` config, so default is to push changes.
- Removed `disable_power` config in favor of `disablePushOn` and `disablePushOff` config settings.
- Fixed Issue where IR Devices commands wouldn't send commands. [#551](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/551), [#553](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/553), [#545](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/545)
- Issue where plugin would continue to crash homebridge. [#547](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/547)
- Fix for node-switchbot showing not installed.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v2.2.1....v2.2.2

## [Version 2.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.1) (2022-10-18)

## What's Changed
Expand Down
51 changes: 9 additions & 42 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -783,32 +783,30 @@
}
},
"customOn": {
"title": "Custom On Command",
"title": "Custom <em class='primary-text'> On </em> Command",
"type": "string",
"placeholder": "On",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType && model.options.irdevices[arrayIndices].customize);"
}
},
"customOff": {
"title": "Custom Off Command",
"title": "Custom <em class='primary-text'> Off </em> Command",
"type": "string",
"placeholder": "Off",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType && model.options.irdevices[arrayIndices].customize);"
}
},
"allowPushOn": {
"title": "Allow On Changes to Be Pushed",
"description": "If set to true, this will allow commands to be sent even if device state is already in state that is being pushed.",
"disablePushOn": {
"title": "Disable Sending <em class='primary-text'> On </em> Command",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType);"
}
},
"allowPushOff": {
"title": "Allow Off Changes to Be Pushed",
"description": "If set to true, this will allow commands to be sent even if device state is already in state that is being pushed.",
"disablePushOff": {
"title": "Disable Sending <em class='primary-text'> Off </em> Command",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId && !model.options.irdevices[arrayIndices].hide_device && model.options.irdevices[arrayIndices].configRemoteType);"
Expand Down Expand Up @@ -869,18 +867,6 @@
}
}
},
"irtv": {
"type": "object",
"properties": {
"disable_power": {
"title": "Disable Power Command",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && !model.options.irdevices[arrayIndices].hide_device && (model.options.irdevices[arrayIndices].configRemoteType === 'TV' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY TV' || model.options.irdevices[arrayIndices].configRemoteType === 'Projector' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY Projector' || model.options.irdevices[arrayIndices].configRemoteType === 'Set Top Box' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY Set Top Box' || model.options.irdevices[arrayIndices].configRemoteType === 'IPTV' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY IPTV' || model.options.irdevices[arrayIndices].configRemoteType === 'DVD' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY DVD' || model.options.irdevices[arrayIndices].configRemoteType === 'Speaker' || model.options.irdevices[arrayIndices].configRemoteType === 'DIY Speaker') && model.options.irdevices[arrayIndices].deviceId);"
}
}
}
},
"other": {
"type": "object",
"properties": {
Expand All @@ -896,22 +882,6 @@
"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);"
}
},
"commandOn": {
"title": "Command sent to turn On Device.",
"type": "string",
"placeholder": "On",
"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);"
}
},
"commandOff": {
"title": "Command sent to turn Off Device.",
"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);"
}
}
}
},
Expand Down Expand Up @@ -1083,21 +1053,18 @@
"options.irdevices[].hide_device",
"options.irdevices[].configRemoteType",
"options.irdevices[].connectionType",
"options.irdevices[].other.deviceType",
"options.irdevices[].customize",
"options.irdevices[].customOn",
"options.irdevices[].customOff",
"options.irdevices[].allowPushOn",
"options.irdevices[].allowPushOff",
"options.irdevices[].disablePushOn",
"options.irdevices[].disablePushOff",
"options.irdevices[].irair.hide_automode",
"options.irdevices[].irfan.rotation_speed",
"options.irdevices[].irfan.swing_mode",
"options.irdevices[].irfan.set_minStep",
"options.irdevices[].irfan.set_min",
"options.irdevices[].irfan.set_max",
"options.irdevices[].irtv.disable_power",
"options.irdevices[].other.deviceType",
"options.irdevices[].other.commandOn",
"options.irdevices[].other.commandOff",
"options.irdevices[].firmware",
"options.irdevices[].external",
"options.irdevices[].logging"
Expand Down
Loading

0 comments on commit 7214625

Please sign in to comment.