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

Bug: Air conditioner temperature not able to change #43

Closed
ilhuafbds opened this issue Oct 6, 2021 · 42 comments
Closed

Bug: Air conditioner temperature not able to change #43

ilhuafbds opened this issue Oct 6, 2021 · 42 comments
Assignees
Labels
bug Something isn't working OpenAPI Issue dealing with OpenAPI (SwitchBotAPI)

Comments

@ilhuafbds
Copy link

ilhuafbds commented Oct 6, 2021

Describe The Bug

Whenever I use the apple's native home app to change the temperature of my air conditioner, it doesn't change the temperature at all. And also, I always select the cooling mode when I turn on, but instead does heating. The number of the temperature i set using a remote controller and the temperature displayed on the apple home app doesn't sync. As you can see from the log, program has failed to send statusCode instead sending the value of %s,%s,%s,%s

To Reproduce

TOSHIBA air conditioner and change temperature from apple's home app

Expected behavior

Temperature not changing

Relevant log output

[10/6/2021, 4:25:24 PM] [SwitchBot] Trigger Get CurrentTemperture
[10/6/2021, 4:25:24 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[10/6/2021, 4:25:24 PM] [@switchbot/homebridge-switchbot] Error: 
    at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105)
    at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16)
    at CurrentTemperature.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1456:24)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
[10/6/2021, 4:26:48 PM] [SwitchBot] Sending request for Air conditioner  Air Conditioner to SwitchBot API. command: setAll parameter: %s,%s,%s,%s commandType: command
[10/6/2021, 4:26:48 PM] [SwitchBot] %s %s pushChanges -
[10/6/2021, 4:26:49 PM] [SwitchBot] %s %s Changes pushed -
[10/6/2021, 4:26:49 PM] [SwitchBot] Unknown statusCode.
[10/6/2021, 4:27:22 PM] [SwitchBot] Sending request for Air conditioner  Air Conditioner to SwitchBot API. command: setAll parameter: %s,%s,%s,%s commandType: command
[10/6/2021, 4:27:22 PM] [SwitchBot] %s %s pushChanges -
[10/6/2021, 4:27:23 PM] [SwitchBot] %s %s Changes pushed -
[10/6/2021, 4:27:23 PM] [SwitchBot] Unknown statusCode.

Config for homebridge-switchbot

{
    "bridge": {
        "name": "Homebridge 2486",
        "username": "",
        "port":,
        "pin": ""
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot"
        }
    ]
}

Screenshots

No response

Device & Model

WH-UB01UJ (model of air conditioner)
W0202200 (model of Switchbot hub mini)

Node.js Version

v14.17.4

NPM Version

v7.24.0

Homebridge Version

v1.3.4

Homebridge Switchbot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

macOS

@ilhuafbds ilhuafbds added the bug Something isn't working label Oct 6, 2021
@github-actions github-actions bot closed this as completed Oct 6, 2021
@OpenWonderLabs OpenWonderLabs deleted a comment from github-actions bot Oct 6, 2021
@donavanbecker donavanbecker reopened this Oct 6, 2021
@ilhuafbds
Copy link
Author

IMG_1388
This is how it looks on the switch bot app log whenever I try to change the temperature from the apple native home app.

donavanbecker added a commit that referenced this issue Oct 7, 2021
@donavanbecker
Copy link
Collaborator

@ilhuafbds can you try the latest beta?

@ilhuafbds
Copy link
Author

ilhuafbds commented Oct 8, 2021

@donavanbecker I tried with the latest beta but it's still the same result

@ilhuafbds
Copy link
Author

@donavanbecker Any updates?

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 13, 2021

@donavanbecker I tried with the latest beta but it's still the same result

the latest beta would not have the same logs so definitely can't be the same results. Can you post more logs from beta?

@ilhuafbds
Copy link
Author

ilhuafbds commented Oct 13, 2021

[10/13/2021, 6:29:18 PM] [SwitchBot] Air_conditioner Air Conditioner pushChanges - {"commandType":"command","parameter":"default","command":"turnOn"}
[10/13/2021, 6:29:19 PM] [SwitchBot] Air_conditioner Air Conditioner Changes pushed - [object Object]
[10/13/2021, 6:29:19 PM] [SwitchBot] Command successfully sent.
[10/13/2021, 6:29:34 PM] [SwitchBot] Sending request for Air_conditioner Air Conditioner to SwitchBot API. command: setAll parameter: 23,1,1,on commandType: command
[10/13/2021, 6:29:34 PM] [SwitchBot] Air_conditioner Air Conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"23,1,1,on"}
[10/13/2021, 6:29:35 PM] [SwitchBot] Air_conditioner Air Conditioner Changes pushed - [object Object]
[10/13/2021, 6:29:35 PM] [SwitchBot] Unknown statusCode.
[10/13/2021, 6:29:39 PM] [SwitchBot] Air_conditioner Air Conditioner Set Active: 1
[10/13/2021, 6:29:41 PM] [SwitchBot] Sending request for Air_conditioner Air Conditioner to SwitchBot API. command: setAll parameter: 23,1,1,on commandType: command
[10/13/2021, 6:29:41 PM] [SwitchBot] Air_conditioner Air Conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"23,1,1,on"}
[10/13/2021, 6:29:42 PM] [SwitchBot] Air_conditioner Air Conditioner Changes pushed - [object Object]
[10/13/2021, 6:29:42 PM] [SwitchBot] Unknown statusCode.
[10/13/2021, 6:29:46 PM] [SwitchBot] Air_conditioner Air Conditioner Set Active: 1
[10/13/2021, 6:29:47 PM] [SwitchBot] Sending request for Air_conditioner Air Conditioner to SwitchBot API. command: setAll parameter: 23,1,1,on commandType: command
[10/13/2021, 6:29:47 PM] [SwitchBot] Air_conditioner Air Conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"23,1,1,on"}
[10/13/2021, 6:29:48 PM] [SwitchBot] Air_conditioner Air Conditioner Changes pushed - [object Object]
[10/13/2021, 6:29:48 PM] [SwitchBot] Unknown statusCode.
[10/13/2021, 6:30:06 PM] [SwitchBot] Air_conditioner Air Conditioner Set Active: 0
[10/13/2021, 6:30:06 PM] [SwitchBot] Sending request for Air_conditioner Air Conditioner to SwitchBot API. command: turnOff parameter: default commandType: command
[10/13/2021, 6:30:06 PM] [SwitchBot] Air_conditioner Air Conditioner pushChanges - {"commandType":"command","parameter":"default","command":"turnOff"}
[10/13/2021, 6:30:07 PM] [SwitchBot] Air_conditioner Air Conditioner Changes pushed - [object Object]
[10/13/2021, 6:30:07 PM] [SwitchBot] Command successfully sent.

@ilhuafbds
Copy link
Author

ilhuafbds commented Oct 13, 2021

[10/13/2021, 6:28:22 PM] [SwitchBot] Trigger Get CurrentTemperture
[10/13/2021, 6:28:22 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[10/13/2021, 6:28:22 PM] [@switchbot/homebridge-switchbot] Error: 
    at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2074:105)
    at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1967:16)
    at CurrentTemperature.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1492:24)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

@ilhuafbds
Copy link
Author

@donavanbecker Thanks for the update! But I still can't change the temperature from my apple home app...

@donavanbecker
Copy link
Collaborator

@ilhuafbds When I get time I will look into this

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 15, 2021

@ilhuafbds, can you try Beta:

npm version

@JB4Lyfe
Copy link

JB4Lyfe commented Oct 17, 2021

@ilhuafbds, can you try Beta:

npm version

Can confirm the latest beta v0.1.2-bueta.39 does not work. Comes up with he same error.

@donavanbecker
Copy link
Collaborator

@JB4Lyfe pleas post the error again

@JB4Lyfe
Copy link

JB4Lyfe commented Oct 18, 2021

Here!. Thanks
IMG_0694
.

@donavanbecker
Copy link
Collaborator

Didn't finish uploading

@ilhuafbds
Copy link
Author

ilhuafbds commented Oct 19, 2021

[10/19/2021, 6:31:29 PM] [SwitchBot] Air_conditioner pushChanges - {"commandType":"command","parameter":"default","command":"turnOn"}
[10/19/2021, 6:31:30 PM] [SwitchBot] Air_conditioner Changes pushed - [object Object]
[10/19/2021, 6:31:30 PM] [SwitchBot] Command successfully sent.
[10/19/2021, 6:31:30 PM] [SwitchBot] Sending request for Air_conditioner to SwitchBot API. command: setAll parameter: 24,1,1,on commandType: command
[10/19/2021, 6:31:30 PM] [SwitchBot] Air_conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"24,1,1,on"}
[10/19/2021, 6:31:31 PM] [SwitchBot] Air_conditioner Changes pushed - [object Object]
[10/19/2021, 6:31:31 PM] [SwitchBot] Unknown statusCode.
[10/19/2021, 6:31:38 PM] [SwitchBot] Sending request for Air_conditioner to SwitchBot API. command: setAll parameter: 21,1,1,on commandType: command
[10/19/2021, 6:31:38 PM] [SwitchBot] Air_conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"21,1,1,on"}
[10/19/2021, 6:31:39 PM] [SwitchBot] Air_conditioner Changes pushed - [object Object]
[10/19/2021, 6:31:39 PM] [SwitchBot] Unknown statusCode.
[10/19/2021, 6:31:59 PM] [SwitchBot] Sending request for Air_conditioner to SwitchBot API. command: setAll parameter: 27,1,1,on commandType: command
[10/19/2021, 6:31:59 PM] [SwitchBot] Air_conditioner pushChanges - {"commandType":"command","command":"setAll","parameter":"27,1,1,on"}
[10/19/2021, 6:32:00 PM] [SwitchBot] Air_conditioner Changes pushed - [object Object]
[10/19/2021, 6:32:00 PM] [SwitchBot] Unknown statusCode.
[10/19/2021, 6:32:06 PM] [SwitchBot] Air_conditioner Set Active: 0
[10/19/2021, 6:32:06 PM] [SwitchBot] Sending request for Air_conditioner to SwitchBot API. command: turnOff parameter: default commandType: command
[10/19/2021, 6:32:06 PM] [SwitchBot] Air_conditioner pushChanges - {"commandType":"command","parameter":"default","command":"turnOff"}
[10/19/2021, 6:32:07 PM] [SwitchBot] Air_conditioner Changes pushed - [object Object]
[10/19/2021, 6:32:07 PM] [SwitchBot] Command successfully sent.

@ilhuafbds
Copy link
Author

Sorry for the late reply. It's still not working on the latest bata...

@donavanbecker
Copy link
Collaborator

@ilhuafbds Are those other commands from the SwitchBot app or the plugin?

@ilhuafbds
Copy link
Author

The log I posted is copied from the homebridge server log.

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 19, 2021

I'm talking about the screenshot

@ilhuafbds
Copy link
Author

@donavanbecker It's all the commands made when I tried to change the temperature from the apple home app.

@ilhuafbds
Copy link
Author

When I change the temperature from the Switchbot app it works just fine.

@618116
Copy link

618116 commented Oct 24, 2021

I have a same issue.

This log is from HomeBridge Plugin:

[10/24/2021, 9:15:08 PM] [SwitchBot] Sending request for エアコン to SwitchBot API. command: setAll parameter: 24,1,1,on commandType: command
[10/24/2021, 9:15:08 PM] [SwitchBot] [DEBUG] エアコン pushChanges - {"commandType":"command","command":"setAll","parameter":"24,1,1,on"}
[10/24/2021, 9:15:09 PM] [SwitchBot] [DEBUG] エアコン Changes pushed - [object Object]
[10/24/2021, 9:15:09 PM] [SwitchBot] [DEBUG] Unknown statusCode.

and on log of SwitchBot App, it is said "error (172)".

@ilhuafbds
Copy link
Author

@donavanbecker Any updates?

@donavanbecker
Copy link
Collaborator

@ilhuafbds, no. I have a life to attend to and only do this on my free time. Please have patients.

@618116
Copy link

618116 commented Nov 6, 2021

Here is a Debug log from 0.1.4-beta3 .
{"statusCode":100,"body":{"deviceList":[{"deviceId":"EDD7CB717E17","deviceName":"Cho's Hub Mini","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"F47BC970D7A5","deviceName":"カーテン","deviceType":"Curtain","enableCloudService":true,"hubDeviceId":"EDD7CB717E17","curtainDevicesIds":["F47BC970D7A5"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"F616355A82A9","deviceName":"温湿度計","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"EDD7CB717E17"}],"infraredRemoteList":[{"deviceId":"02-202110190736-52839243","deviceName":"ライト2","remoteType":"Light","hubDeviceId":"EDD7CB717E17"},{"deviceId":"02-202110190737-58148629","deviceName":"ライト1","remoteType":"Light","hubDeviceId":"EDD7CB717E17"},{"deviceId":"02-202111062211-57539880","deviceName":"エアコン","remoteType":"Air Conditioner","hubDeviceId":"EDD7CB717E17"}]},"message":"success"}

@ilhuafbds
Copy link
Author

ilhuafbds commented Nov 7, 2021

DIR: /usr/local
CMD: npm install -g @switchbot/homebridge-switchbot@0.1.4-beta.3

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@switchbot/homebridge-switchbot@0.1.4-beta.3',
npm WARN EBADENGINE   required: { homebridge: '^1.3.5', node: '^14.18.1 || ^16.13.0' },
npm WARN EBADENGINE   current: { node: 'v14.17.4', npm: '7.24.0' }
npm WARN EBADENGINE }
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.17.4 | darwin | x64
npm ERR! gyp info find Python using Python version 3.10.0 found at "/usr/local/bin/python3"
npm ERR! gyp info spawn /usr/local/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users//Library/Caches/node-gyp/14.17.4/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users//Library/Caches/node-gyp/14.17.4',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users//Library/Caches/node-gyp/14.17.4/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR! 
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR! 
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR! 
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 21.1.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble
npm ERR! gyp ERR! node -v v14.17.4
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users//.npm/_logs/2021-11-07T09_45_00_125Z-debug.log

Command failed. Please review log for details.

@ilhuafbds
Copy link
Author

@donavanbecker When I tried to install your latest beta, an error showed up and I couldn't install it.

@donavanbecker
Copy link
Collaborator

@ilhuafbds Did you read the warning? You need to update your node version.

@donavanbecker
Copy link
Collaborator

@ilhuafbds and @618116, sorry latest beta should work now.

@618116
Copy link

618116 commented Nov 13, 2021

Tested new beta, unfortunately it did not work.
Turn On and Off Air Conditioner works, however Set temperature does not works and there is Error(172) in SwitchBot app log.

This is log from HomeBridge plugin Debug mode when turn on Air Conditioner with setting "24℃, Heater" in iOS Home app:

[11/13/2021, 11:29:30 PM] [SwitchBot] [DEBUG] エアコン Set Active: 1
[11/13/2021, 11:29:30 PM] [SwitchBot] Sending request for エアコン to SwitchBot API. command: turnOn parameter: default commandType: command
[11/13/2021, 11:29:30 PM] [SwitchBot] [DEBUG] エアコン pushChanges - {"commandType":"command","parameter":"default","command":"turnOn"}
[11/13/2021, 11:29:31 PM] [SwitchBot] [DEBUG] エアコン Changes pushed - [object Object]
[11/13/2021, 11:29:31 PM] [SwitchBot] [DEBUG] Command successfully sent.
[11/13/2021, 11:29:32 PM] [SwitchBot] Sending request for エアコン to SwitchBot API. command: setAll parameter: 24,1,1,on commandType: command
[11/13/2021, 11:29:32 PM] [SwitchBot] [DEBUG] エアコン pushChanges - {"commandType":"command","command":"setAll","parameter":"24,1,1,on"}
[11/13/2021, 11:29:33 PM] [SwitchBot] [DEBUG] エアコン Changes pushed - [object Object]
[11/13/2021, 11:29:33 PM] [SwitchBot] [DEBUG] Unknown statusCode.

And SwitchBot app had 2 logs:

"On, Heater, Auto, 25℃", "Error(172)"

donavanbecker added a commit that referenced this issue Nov 17, 2021
- another attempt at #43
- housekeeping
donavanbecker added a commit that referenced this issue Nov 20, 2021
## [Version 1.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-19)

## What's Changed
* Added option to be able to do Bluetooth Low Energy (BLE) Only Connection.
    * Must supply `Device ID` & `Device Name` to the Device Config
    * Must Check `Enable Bluetooth Low Energy (BLE) Connection`
* Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
* Add option to set Min Lux and Max Lux for Curtain's Light Sensor.
* Add `updateHomeKitCharacteristics` to IR Devices to contain all `updateCharacteristics` in one spot.
* Add `Saturation` and `Hue` to Colorbulb.
* Housekeeping and updated dependencies.

**Full Changelog**: v1.1.0...v1.2.0
donavanbecker added a commit that referenced this issue Nov 20, 2021
## [Version 1.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-19)

## What's Changed
* Added option to be able to do Bluetooth Low Energy (BLE) Only Connection.
    * Must supply `Device ID` & `Device Name` to the Device Config
    * Must Check `Enable Bluetooth Low Energy (BLE) Connection`
* Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
* Add option to set Min Lux and Max Lux for Curtain's Light Sensor.
* Add `updateHomeKitCharacteristics` to IR Devices to contain all `updateCharacteristics` in one spot.
* Add `Saturation` and `Hue` to Colorbulb.
* Housekeeping and updated dependencies.

**Full Changelog**: v1.1.0...v1.2.0
@donavanbecker
Copy link
Collaborator

Version 1.2.0 has been released, Please update me on this, and if it has been resolved with this version.

@618116
Copy link

618116 commented Nov 20, 2021

Unfortunately, still not fixed. Below is log from Homebridge when trying to turn on with 29℃ setting.

> [11/20/2021, 2:53:19 PM] [SwitchBot] Air Conditioner: エアコン Sending request to SwitchBot API. command: turnOn, parameter: default, commandType: command
> [11/20/2021, 2:53:21 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン pushChanges: [object Object]
> [11/20/2021, 2:53:21 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン Command successfully sent.
> [11/20/2021, 2:53:21 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 29 exceeded maximum of 1. See https://git.io/JtMGR for more info.
> [11/20/2021, 2:53:21 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン TargetHeaterCoolerState: undefined
> [11/20/2021, 2:53:21 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン HeatingThresholdTemperature: undefined```

SwitchBot app log shows only "turn on, heat, auto, 24℃" log.

Also If I try to change temperature in home app, SwitchBot app log shows Error(172).

@jhy-dabeeo
Copy link

jhy-dabeeo commented Nov 20, 2021

Hi i have Air conditioner temperature changing issue too

this is my log. i can't find issue related my error type so write here
i just updated plugin 1.2.0 but still got errors when change temperature while turn on/off is fine.

[20/11/2021, 19:45:30] [SwitchBot] Air Conditioner: Air conditioner Sending request to SwitchBot API. command: turnOn, parameter: default, commandType: command
[20/11/2021, 19:45:32] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic Active: 1
[20/11/2021, 19:45:32] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic RotationSpeed: 4
[20/11/2021, 19:45:32] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentTemperature: 24
[20/11/2021, 19:45:32] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentHeaterCoolerState: 0
[20/11/2021, 19:45:42] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner CurrentTemperature: 20, LastTemperature: 24
[20/11/2021, 19:45:43] [SwitchBot] Air Conditioner: Air conditioner Sending request to SwitchBot API. command: setAll, parameter: 20,1,1,on, commandType: command
[20/11/2021, 19:45:44] [SwitchBot] Air Conditioner: Air conditioner Device internal error due to device states not synchronized with server, Or command: {"statusCode":190,"body":{},"message":"Cannot read property 'toString' of null"} format is invalid
[20/11/2021, 19:45:44] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic Active: 1
[20/11/2021, 19:45:44] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic RotationSpeed: 4
[20/11/2021, 19:45:44] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentTemperature: 20
[20/11/2021, 19:45:44] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentHeaterCoolerState: 3
[20/11/2021, 19:45:47] [SwitchBot] Air Conditioner: Air conditioner Sending request to SwitchBot API. command: turnOff, parameter: default, commandType: command
[20/11/2021, 19:45:48] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic Active: 0
[20/11/2021, 19:45:48] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic RotationSpeed: 4
[20/11/2021, 19:45:48] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 20 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[20/11/2021, 19:45:48] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentTemperature: 20
[20/11/2021, 19:45:48] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner updateCharacteristic CurrentHeaterCoolerState: 3
[20/11/2021, 19:46:16] [SwitchBot] [DEVICE] Air Conditioner: Air conditioner CurrentHeaterCoolerState: 0```

@hughfr4nc15
Copy link

hughfr4nc15 commented Nov 23, 2021

Having the same issue with a Mitsubishi AC. Tried 1.2.1 beta but still got the errors.
Also when I turn it OFF in the Home App it briefly shows as OFF but then ON again although it is turning OFF. Have to click it again to show OFF.

Log:

[23/11/2021, 22:57:05] [Homebridge UI] Homebridge restart request received
[23/11/2021, 22:57:05] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[23/11/2021, 22:57:05] [Homebridge UI] Sending SIGTERM to Homebridge
[23/11/2021, 22:57:05] [HB Supervisor] Homebridge Process Ended. Code: null, Signal: SIGTERM
[23/11/2021, 22:57:10] [HB Supervisor] Restarting Homebridge...
[23/11/2021, 22:57:10] [HB Supervisor] Starting Homebridge with extra flags: -I
[23/11/2021, 22:57:10] [HB Supervisor] Started Homebridge v1.3.8 with PID: 7556
[23/11/2021, 22:57:11] Loaded config.json with 0 accessories and 4 platforms.
[23/11/2021, 22:57:11] Loaded 4 cached accessories from cachedAccessories.
[23/11/2021, 22:57:11] ---
[23/11/2021, 22:57:11] Loaded plugin: homebridge-config-ui-x@4.41.2
[23/11/2021, 22:57:11] Registering platform 'homebridge-config-ui-x.config'
[23/11/2021, 22:57:11] ---
[23/11/2021, 22:57:11] Loaded plugin: homebridge-samsung-tizen@5.1.0
[23/11/2021, 22:57:11] Registering platform 'homebridge-samsung-tizen.SamsungTizen'
[23/11/2021, 22:57:11] ---
[23/11/2021, 22:57:11] Loaded plugin: homebridge-shelly@0.19.1
[23/11/2021, 22:57:11] Registering platform 'homebridge-shelly.Shelly'
[23/11/2021, 22:57:11] ---
[23/11/2021, 22:57:12] Loaded plugin: @switchbot/homebridge-switchbot@1.2.0
[23/11/2021, 22:57:12] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[23/11/2021, 22:57:12] ---
[23/11/2021, 22:57:12] Loading 4 platforms...
[23/11/2021, 22:57:12] [Homebridge] Initializing config platform...
[23/11/2021, 22:57:12] [Homebridge] Running in Service Mode
[23/11/2021, 22:57:12] [SamsungTizen] Initializing SamsungTizen platform...
[23/11/2021, 22:57:12] [Shelly] Initializing Shelly platform...
[23/11/2021, 22:57:12] [SwitchBot] Initializing SwitchBot platform...
[23/11/2021, 22:57:12] [SwitchBot] Initializing child bridge 0E:B7:F5:44:78:2D

[...]

[23/11/2021, 22:57:12] [SwitchBot] Launched child bridge with PID 7376
[23/11/2021, 22:57:13] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[23/11/2021, 22:57:13] [SwitchBot] Loaded @switchbot/homebridge-switchbot v1.2.0 child bridge successfully
[23/11/2021, 22:57:13] Loaded 2 cached accessories from cachedAccessories.0EB7F544782D.
[23/11/2021, 22:57:13] [SwitchBot] Using Default Refresh Rate (2 minutes).
[23/11/2021, 22:57:13] [SwitchBot] Using Default Push Rate.
[23/11/2021, 22:57:13] [SwitchBot] Loading accessory from cache: Master Bedroom AC
[23/11/2021, 22:57:13] [SwitchBot] Loading accessory from cache: Master Bedroom Meter
[23/11/2021, 22:57:13] Homebridge v1.3.8 (HAP v0.9.7) (SwitchBot) is running on port 47274.
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] {"statusCode":100,"body":{"deviceList":[{"deviceId":"C9EC03C1F591","deviceName":"Master Bedroom Meter","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"D680602B728C"},{"deviceId":"D680602B728C","deviceName":"Master Bedroom Hub Mini","deviceType":"Hub Mini","hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202111231606-62857792","deviceName":"Master Bedroom AC","remoteType":"Air Conditioner","hubDeviceId":"D680602B728C"}]},"message":"success"}
[23/11/2021, 22:57:13] [SwitchBot] Total SwitchBot Devices Found: 2
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Discovered Meter: C9EC03C1F591
[23/11/2021, 22:57:13] [SwitchBot] Restoring existing accessory from cache: Master Bedroom Meter DeviceID: C9EC03C1F591
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Discovered Hub Mini: D680602B728C
[23/11/2021, 22:57:13] [SwitchBot] Total IR Devices Found: 1
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Discovered Air Conditioner: 02-202111231606-62857792
[23/11/2021, 22:57:13] [SwitchBot] Restoring existing accessory from cache: Master Bedroom AC DeviceID: 02-202111231606-62857792
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Air Conditioner uuid: 02-202111231606-62857792-Air Conditioner, (93e6df79-d302-4932-a248-a0121ebee952)
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Meter: Master Bedroom Meter OpenAPI RefreshStatus
[23/11/2021, 22:57:13] [SwitchBot] [DEBUG] Meter uuid: C9EC03C1F591-Meter, (b9047841-30d0-48c5-a6fa-1aebee794bde)
[23/11/2021, 22:57:14] [SwitchBot] [DEBUG] Trigger Get CurrentTemperture
[23/11/2021, 22:57:14] [SwitchBot] [DEBUG] Meter: Master Bedroom Meter openAPIRefreshStatus: {"statusCode":100,"body":{"deviceId":"C9EC03C1F591","deviceType":"Meter","hubDeviceId":"D680602B728C","humidity":58,"temperature":21.7},"message":"success"}
[23/11/2021, 22:57:14] [SwitchBot] [DEBUG] Meter: Master Bedroom Meter OpenAPI parseStatus
[23/11/2021, 22:57:14] [SwitchBot] [DEBUG] Meter: Master Bedroom Meter Humidity: 58%
[23/11/2021, 22:57:14] [SwitchBot] [DEBUG] Meter: Master Bedroom Meter Temperature: 21.7°c
[23/11/2021, 22:57:34] [SwitchBot] [DEBUG] Trigger Get CurrentTemperture
[23/11/2021, 22:57:51] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Set Active: 1
[23/11/2021, 22:57:51] [SwitchBot] Air Conditioner: Master Bedroom AC Sending request to SwitchBot API. command: turnOn, parameter: default, commandType: command
[23/11/2021, 22:57:52] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC pushChanges: [object Object]
[23/11/2021, 22:57:52] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Command successfully sent.
[23/11/2021, 22:57:52] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 24 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[23/11/2021, 22:57:52] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC TargetHeaterCoolerState: undefined
[23/11/2021, 22:57:52] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC HeatingThresholdTemperature: undefined
[23/11/2021, 22:57:53] [SwitchBot] Air Conditioner: Master Bedroom AC Sending request to SwitchBot API. command: setAll, parameter: 24,1,1,on, commandType: command
[23/11/2021, 22:57:53] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC pushChanges: [object Object]
[23/11/2021, 22:57:53] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Unknown statusCode.
[23/11/2021, 22:57:53] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 24 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[23/11/2021, 22:57:53] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC TargetHeaterCoolerState: undefined
[23/11/2021, 22:57:53] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC HeatingThresholdTemperature: undefined
[23/11/2021, 22:58:00] [SwitchBot] Air Conditioner: Master Bedroom AC Sending request to SwitchBot API. command: setAll, parameter: 25,1,1,on, commandType: command
[23/11/2021, 22:58:01] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC pushChanges: [object Object]
[23/11/2021, 22:58:01] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Unknown statusCode.
[23/11/2021, 22:58:01] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 25 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[23/11/2021, 22:58:01] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC TargetHeaterCoolerState: undefined
[23/11/2021, 22:58:01] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC HeatingThresholdTemperature: undefined
[23/11/2021, 22:58:09] [SwitchBot] Air Conditioner: Master Bedroom AC Sending request to SwitchBot API. command: setAll, parameter: 24,1,1,on, commandType: command
[23/11/2021, 22:58:10] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC pushChanges: [object Object]
[23/11/2021, 22:58:10] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Unknown statusCode.
[23/11/2021, 22:58:10] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 24 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[23/11/2021, 22:58:10] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC TargetHeaterCoolerState: undefined
[23/11/2021, 22:58:10] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC HeatingThresholdTemperature: undefined
[23/11/2021, 22:58:14] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Set Active: 0
[23/11/2021, 22:58:14] [SwitchBot] Air Conditioner: Master Bedroom AC Sending request to SwitchBot API. command: turnOff, parameter: default, commandType: command
[23/11/2021, 22:58:15] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC pushChanges: [object Object]
[23/11/2021, 22:58:15] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Command successfully sent.
[23/11/2021, 22:58:15] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 24 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[23/11/2021, 22:58:15] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC TargetHeaterCoolerState: undefined
[23/11/2021, 22:58:15] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC HeatingThresholdTemperature: undefined
[23/11/2021, 22:58:17] [SwitchBot] [DEBUG] Air Conditioner: Master Bedroom AC Set Active: 0

Let me know if I can provide anything more useful.

Thanks.

@donavanbecker donavanbecker added the OpenAPI Issue dealing with OpenAPI (SwitchBotAPI) label Nov 24, 2021
@donavanbecker
Copy link
Collaborator

donavanbecker commented Nov 30, 2021

@hughfr4nc15
Copy link

Hello @donavanbecker, I've returned the equipments a couple of days after... If in the near future all works well I might try them again because they seem a cheap alternative to control the AC.

I'll keep following the project.

Thanks.

@jhy-dabeeo
Copy link

update 1.3.0 but still got errors

[06/12/2021, 21:48:04] [SwitchBot] Air Conditioner: Air conditioner pushChanges: {"statusCode":190,"body":{},"message":"Cannot read property 'toString' of null"}
[06/12/2021, 21:48:04] [SwitchBot] Air Conditioner: Air conditioner Device internal error due to device states not synchronized with server, Or command: {"statusCode":190,"body":{},"message":"Cannot read property 'toString' of null"} format is invalid

@618116
Copy link

618116 commented Dec 13, 2021

Tried 1.3.1-beta1 13. Not fixed.

Log from HomeBridge:
[12/13/2021, 7:38:27 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン pushChanges: [object Object] [12/13/2021, 7:38:27 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン Unknown statusCode. [12/13/2021, 7:38:27 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 27 exceeded maximum of 1. See https://git.io/JtMGR for more info. [12/13/2021, 7:38:27 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン TargetHeaterCoolerState: undefined [12/13/2021, 7:38:27 PM] [SwitchBot] [DEBUG] Air Conditioner: エアコン HeatingThresholdTemperature: undefined

SwitchBot App returned Error(172).

@y-mamanaranu
Copy link

I have the same problem with 1.4.0 and get the logs below.
It seems this plugin push [temperture, 1, 1, on] regardless of HeaterCoolerState, which I set in the UI.
The second paramter indicate HeaterCoolerState: https://github.com/OpenWonderLabs/SwitchBotAPI.
All error logs shown in this thread also push the parameters with the same form above.

[12/18/2021, 12:57:56 PM] [SwitchBot] Air Conditioner: MyDeviceName Sending request to SwitchBot API. command: setAll, parameter: [21,1,1,on], commandType: command
[12/18/2021, 12:57:57 PM] [SwitchBot] Air Conditioner: MyDeviceName pushChanges: {"statusCode":190,"body":{},"message":"Cannot read property 'length' of null"}
[12/18/2021, 12:57:57 PM] [SwitchBot] Air Conditioner: MyDeviceName Device internal error due to device states not synchronized with server, Or command: {"statusCode":190,"body":{},"message":"Cannot read property 'length' of null"} format is invalid

I also tested the native SwitchBot API on python and found the facts below.
First, With auto mode (HeaterCoolerState=1), my air conditioner allows only 25 degrees, i.e., parameters of [25, 1, 1, on].
This plugin also successfully changed my air conditioner under this condition and got logs below.
My SwitchBot app also fixes the temper with 25 degrees with auto mode.

[12/18/2021, 1:07:27 PM] [SwitchBot] Air Conditioner: MyDeviceName Sending request to SwitchBot API. command: setAll, parameter: [25,1,1,on], commandType: command
[12/18/2021, 1:07:28 PM] [SwitchBot] Air Conditioner: MyDeviceName pushChanges: {"statusCode":100,"body":{},"message":"success"}

Second, It seems that the IR devices have no method to get the current state: https://github.com/OpenWonderLabs/SwitchBotAPI.
So, I think some problems occur around updating the current state.

I will share the results of my research so far.

donavanbecker added a commit that referenced this issue Dec 27, 2021
@donavanbecker donavanbecker mentioned this issue Dec 27, 2021
donavanbecker added a commit that referenced this issue Dec 27, 2021
## [Version 1.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.5.0) (2021-12-27)

## What's Changed
### Major Change To `Logging`:
* Added the following Logging Options:
    * `Standard`
    * `None`
    * `Debug`
* Removed Device Logging Option, which was pushed into new logging under debug.
* Added Device Logging Override for each Device, by using the Device Config.

### Major Changes to `refreshRate`:
* Added an option to override `refreshRate` for each Device, by using the Device Config.

### Other Changes
* Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
* Housekeeping and updated dependencies.

**Full Changelog**: v1.4.0...v1.5.0
@donavanbecker
Copy link
Collaborator

donavanbecker commented Dec 27, 2021

I also tested the native SwitchBot API on python and found the facts below. First, With auto mode (HeaterCoolerState=1), my air conditioner allows only 25 degrees, i.e., parameters of [25, 1, 1, on]. This plugin also successfully changed my air conditioner under this condition and got logs below. My SwitchBot app also fixes the temper with 25 degrees with auto mode.

Thanks @y-muen!!! I have implemented this into that last beta. This should fix mostly everything.

Released v1.5.0, which fixes this issue, so closing issue. If other issues come up with Air Conditioner, please open new issue.

donavanbecker added a commit that referenced this issue Nov 8, 2023
# Changelog

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

## [Version 2.11.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.11.0) (2023-11-07)

## What's Changed

- Added Latch Switch to activate Latch on Lock, Thanks [@quebulm](https://github.com/quebulm) [#859](#859)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.10.1...v2.11.0>

## [Version 2.10.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.1) (2023-11-01)

## What's Changed

- Added webhook event listener for Bot, Ceiling Light, Color Bulb, Contact, Curtain, IOSensor, Light Strip, Lock, Motion, Plug, & Robot Vacuum Cleaner
- Added Webhook config to Plugin Config UI.

**Full Changelog**: <v2.10.0...v2.10.1>

## [Version 2.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.0) (2023-10-31)

## What's Changed

- Added webhook event listener for Meter, Meter Plus, & Hub 2, Thanks [@banboobee](https://github.com/banboobee) [#850](#850)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.2...v2.10.0>

## [Version 2.9.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.2) (2023-10-26)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.1...v2.9.2>

## [Version 2.9.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.1) (2023-10-14)

## What's Changed

- Fix issue with `FirmwareRevision` causing Homebridge Crash. Fixes [#839](#839), [#832](#832), [#829](#829), & [#828](#828)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.0...v2.9.1>

## [Version 2.9.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.0) (2023-09-16)

## What's Changed

- Add other `deviceTypes` for IR Type `Other`.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.2...v2.9.0>

## [Version 2.8.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.2) (2023-08-27)

## What's Changed

- Fixed issue with `BatteryLevel` & `FirmwareRevision` not displaying correctly for certain deviceTypes.
- Fixed config issue where Eve History was not showing for WoIOSensor.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.1...v2.8.2>

## [Version 2.8.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.1) (2023-08-22)

## What's Changed

- Added additional logging to catch statusCodes like 190 (Requests reached the daily limit).
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.0...v2.8.1>

## [Version 2.8.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.0) (2023-08-19)

## What's Changed

- Add Hub 2 Light-Level Support. [#776](#776)
- Enable Meter Battery Level for OpenAPI, Thanks [@mrlt8](https://github.com/mrlt8) [#782](#782)
- Enable Meter Plus Battery Level for OpenAPI, Thanks [@mrlt8](https://github.com/mrlt8) [#787](#787)
- Enable Battery Level and Version for OpenAPI for BlindTilt, Bot, Ceiling Lights, Color Bulb, Contact, Curtain, Hub, Humidifier, Indoor/Outdoor Sensor, Light Strip, Lock, Meter, Meter Plus, Motion , Plug, Plug Mini, & Robot Vacuum Cleaner
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.7.1...v2.8.0>

## [Version 2.7.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.7.1) (2023-07-29)

## What's Changed

- Fixed Hub 2 temperature/humidity data for AC, Thanks [@mrlt8](https://github.com/mrlt8) [#779](#779)
- Fixed TargetTemperature not being updated in the HomeKit, Thanks [@mrlt8](https://github.com/mrlt8) [#7779](#779)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.7.0...v2.7.1>

## [Version 2.7.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.7.0) (2023-07-25)

## What's Changed

- Will now log if there are no devices discovered by SwitchBot-API.
- Added the ability to use Tempature from a SwitchBot Meter to be used with an IR Air Conditioner, Thanks [@mrlt8](https://github.com/mrlt8) [#761](#761)
- Adds the ability to enable EVE history SwitchBot Curtains, Thanks [@banboobee](https://github.com/banboobee) [#766](#766)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.6.2...v2.7.0>

## [Version 2.6.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.2) (2023-04-17)

## What's Changed

- Fix for Commands not being sent, [#721](#721)
- Housekeeping.

**Full Changelog**: <v2.6.1...v2.6.2>

## [Version 2.6.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.1) (2023-04-15)

## What's Changed

- Add Support for [SwitchBot Meter Plus (JP)](https://www.switchbot.jp/products/switchbot-meter-plus), Thanks [@tikuwas](https://github.com/tikuwas) [#642](#642)

**Full Changelog**: <v2.6.0...v2.6.1>

## [Version 2.6.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.0) (2023-04-15)

## What's Changed

- Add Support for [SwitchBot Hub 2](https://us.switch-bot.com/pages/switchbot-hub-2) Humidity and Temperature Sensor, Thanks [@Alvie](https://github.com/alvie). [#716](#716)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.5.3...v2.6.0>

## [Version 2.5.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.3) (2023-04-08)

## What's Changed

- Removed unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#699](#699)
- Removed inMotion condition, Thanks [@dnicolson](https://github.com/dnicolson). [#703](#703)
- Fix async method calls, Thanks [@dnicolson](https://github.com/dnicolson). [#690](#690)
- Improve curtain retry functionality, Thanks [@dnicolson](https://github.com/dnicolson). [#694](#694)
- Add Support for [SwitchBot Indoor/Outdoor Thermo-Hygrometer](https://www.switch-bot.com/products/switchbot-indoor-outdoor-thermo-hygrometer)
- Housekeeping and updated dependencies.
  - This release will end support for Node v14.

**Full Changelog**: <v2.5.2...v2.5.3>

## [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](#667)
- Fixes only_up mode in settings configuration, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#669](#669)
- Removes runStatus check, fixes some logic, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#672](#672)
- Remove unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#675](#675)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#674](#674)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#673](#673)
- Housekeeping and updated dependencies.

**Full Changelog**: <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

- Fix Blind Tilt Config.

**Full Changelog**: <v2.5.0...v2.5.1>

## [Version 2.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.0) (2023-01-28)

## What's Changed

- Add Intial Support for Blind Tilt (OpenAPI Only), Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#649](#649)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#661](#661)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#633](#633)
- Enhancements to BLE functionality.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.4.0...v2.5.0>

## [Version 2.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.4.0) (2022-12-27)

## What's Changed

- Added a new `Bot` Device Type `Multi-Press`, Thanks [@alvst](https://github.com/alvst). [#628](#628)
- Added `maxRetry` option for `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#631](#631)
- Fix max retry option for `Bot`, `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#630](#628)
- Moved `maxRetry` option from `Bot` level to overall `configDeviceType` level.
  - **If you had this set for your `Bot` you will have to update this config.**
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.2...v2.4.0>

## [Version 2.3.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.2) (2022-12-16)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.1...v2.3.2>

## [Version 2.3.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.1) (2022-12-11)

## What's Changed

- Fixed TypeError: Cannot read properties of undefined (reading 'setCharacteristic'). [#610](#610)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.0...v2.3.1>

## [Version 2.3.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.0) (2022-12-08)

## What's Changed

- Added Support for SwitchBot Robot Vacuum Cleaner S1 & SwitchBot Robot Vacuum Cleaner S1 Plus
- Add Read-only BLE Support for Smart Lock.
- Added `disablePushDetail` config to IR Air Conditioners.
- Fixed issue where Meter did not parsing temperature. [#571](#571)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.2.2...v2.3.0>

## [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>

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

## What's Changed

- Fix for node-switchbot showing not installed.

**Full Changelog**: <v2.2.0...v2.2.1>

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

## What's Changed

- Moved Air Conditioner config `PushOn` to be an overal IR Device config of `allowPushOn` and `allowPushOff`.
- Fixed Issue where Brightness characteristic received "NaN". [#518](#518)
- Fixed Issue where IR TVs would not default to External Device. [#520](#518)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.2...v2.2.0>

## [Version 2.1.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.2) (2022-10-14)

## What's Changed

- Fix issue with IR Devices not having a default `ConnectionType`. [#527](#527)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.1...v2.1.2>

## [Version 2.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.1) (2022-10-14)

## What's Changed

- Fixed issue were `CustomOff` would send incorrect commands. Also Resolves [#409](#409).
- Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](#520)
- Fixed issue with Curtain not refreshing moving status. [#517](#517)
- Fix issue with IR Devices not having a default `ConnectionType`. [#527](#527)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.0...v2.1.1>

## [Version 2.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.0) (2022-10-13)

## What's Changed

- Added `pushRatePress` config to set how many seconds inbetween doublePresses.
  - Also if `doublePress` isn't set it will not wait to pushChanges.
- Added `customize` config option which will allow for custom On and off commands for IR Devices.
  - Added `customOn` & `customOff` to set custom commands for IR Devices.
- Removed `Other`: `commandOn` & `commandOff` you will have to change your commands to the new `customOn` & `customOff` config under the `customize` config.
- Fixed issue where devices are not exposed to Homekit. [#507](#507), [#508](#508), [#513](#513)
- Fixed issue with Non-group Curtains being removed or not displaying in Homekit. [#510](#510)
- Fixed issue were Plugin was waiting 15 seconds before sending command to SwitchBot API. [#509](#509)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.0.0...v2.1.0>

## [Version 2.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.0.0) (2022-10-12)

## What's Changed

- Moved from v1.0 to v1.1 of [OpenAPI](https://github.com/OpenWonderLabs/SwitchBotAPI)
- Added Config that allows device(s) to be published as an external accessory.
- Added `connectionType` config, this replaces the `BLE` config.
  - You can now select Both Connections, Only OpenAPI, Only BLE, or Disable.
    - `Both` will use BLE as the default connection and will use OpenAPI as a backup connection.
    - `OpenAPI` will only allow connections through the OpenAPI.
    - `BLE` will only allow connections through Bluetooth (BLE), .
    - `Disable` will disable all connections. This will also allow you to disable commands and refreshes for a specific device but leave it in HomeKit.
- Added Support for Ceiling Light & Ceiling Light Pro
- Fixes Smart Lock Issues fixed in v1.1 of OpenAPI. [#462](#462)
= Fixes excesive logging from node-switchbot. [#435](#435), [#444](#444), [#446](#446)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.15.0...v2.0.0>

## [Version 1.15.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.15.0) (2022-08-27)

## What's Changed

- Added BLE support for PlugMini (US) & PlugMini (JP)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.2...v1.15.0>

## [Version 1.14.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.2) (2022-08-20)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.1...v1.14.2>

## [Version 1.14.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.1) (2022-06-28)

## What's Changed

- Fixed some logging.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.0...v1.14.1>

## [Version 1.14.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.0) (2022-06-25)

## What's Changed

- Added support for Smart Lock commands over OpenAPI. Thanks [tom-todd](https://github.com/tom-todd) [#382](#337) & [#387](#337)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.13.0...v1.14.0>

## [Version 1.13.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.13.0) (2022-05-04)

## What's Changed

- Added MQTT support for Meter and Curtain devices. Thanks [banboobee](#337)
- Added Eve history features for meter devices. Thanks [banboobee](https://github.com/banboobee) [#338](#338)
- Added Config `setOpenMode` and `setCloseMode` so that you can set mode to be Performance or Silent.
- Added Config to allow manually setting firmware version.
- Fixed Smart Lock Display state status.
  - Still unable to control Locks because of API limitations.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.8...v1.13.0>

## [Version 1.12.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.8) (2022-03-19)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.7...v1.12.8>

## [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>

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

## What's Changed

- Fix for Curtain v3.3 and above, from v1.2.0 node-switchbot update.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.5...v1.12.6>

## [Version 1.12.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.5) (2022-02-15)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.4...v1.12.5>

## [Version 1.12.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.4) (2022-02-12)

## What's Changed

- Fix support for Meter Plus
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.3...v1.12.4>

## [Version 1.12.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.3) (2022-02-05)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.2...v1.12.3>

## [Version 1.12.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.2) (2022-02-02)

## What's Changed

- Fix: Issue where `PositionState` was not being sent back to Home App. Fixes [#123](#123) Thanks [@dnicolson](https://github.com/dnicolson)!

**Full Changelog**: <v1.12.1...v1.12.2>

## [Version 1.12.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.1) (2022-02-01)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.0...v1.12.1>

## [Version 1.12.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.0) (2022-01-29)

## What's Changed

- Add option `maxRetry` for bots so you can set the number of retries for sending on or off for Bot.

**Full Changelog**: <v1.11.2...v1.12.0>

## [Version 1.11.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.2) (2022-01-29)

## What's Changed

- Fix: Use `updateRate` instead of `refreshRate` when overriding `scanDuration`.

**Full Changelog**: <v1.11.1...v1.11.2>

## [Version 1.11.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.1) (2022-01-29)

## What's Changed

- Fix: `This plugin generated a warning from the characteristic 'Brightness': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Color Temperature': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Hue': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Saturation': characteristic value expected valid finite number and received "undefined" (undefined)`.

**Full Changelog**: <v1.11.0...v1.11.1>

## [Version 1.11.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.0) (2022-01-29)

## What's Changed

- Add Support for SwitchBot Smart Lock
- Add Support for SwitchBot Strip Light
- Add Support for SwitchBot Meter Plus (US)
- Add Support for SwitchBot Meter Plus (JP)
- Add Support for SwitchBot Plug Mini (US)
- Add Support for SwitchBot Plug Mini (US)
- Fixed: Curtain `set_min` and `set_max` options not work correctly with minimum and maximum curtain state. [#123](#123)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.10.1...v1.11.0>

## [Version 1.10.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.10.1) (2022-01-26)

## What's Changed

- Fixed: Option `pushOn` was not push `On` commands.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.10.0...v1.10.1>

## [Version 1.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.10.0) (2022-01-21)

## What's Changed

- Add option `pushOn`, this will allow the `On` commands to be sent along side `Status` change commands.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.9.0...v1.10.0>

## [Version 1.9.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.9.0) (2022-01-20)

## What's Changed

- Add option `allowPush`, this will allow commands to be sent even if device state is already in state that is being pushed.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.8.2...v1.9.0>

## [Version 1.8.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.2) (2022-01-15)

## What's Changed

- Fixed Bug: Only log config if it is set.

**Full Changelog**: <v1.8.1...v1.8.2>

## [Version 1.8.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.1) (2022-01-15)

## What's Changed

- Fixed Bug: Cannot set properties of undefined (setting 'logging')

**Full Changelog**: <v1.8.0...v1.8.1>

## [Version 1.8.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.0) (2022-01-14)

## What's Changed

- Added option to display Bot a Stateful Programmable Switch.
  - This will only Works in 3rd Party Home App, Like [Eve](https://apps.apple.com/us/app/eve-for-homekit/id917695792) or [Home+ 5](https://apps.apple.com/us/app/home-5/id995994352)
- Add option to Hide Motion Sensor's Light Sensor.
- Add option to Set Motion Sensor's Light Sensor `set_minLux` and `set_maxLux`.
- Fixed Bug: Where BLE config would show for devices that don't support BLE.
- Fixed Bug: Contact Sensors's Motion Sensor and Light Sensor showing undefined values.
- Fixed Bug: Motion Sensors's Light Sensor showing undefined values.
- Fixed Bug: Battery Service wouldn't be removed from Curtain, Contact Sensor, or Motion Sensor when switching from BLE to OpenAPI.
- Enhancments: Made some improvemnt on the switch from BLE to OpenAPI when BLE connection fails.
- Enhancments: Made Optional Switchbot Device Settings and Optional IR Device Settings more managable by using Tabs.
- Change: Changed Curtain `refreshRate` to `updateRate`.
  - You will have to update your config for it to pickup the new `updateRate`.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.7.0...v1.8.0>

## [Version 1.7.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.7.0) (2022-01-05)

## What's Changed

- Added option to display Bot a Fan.
- Added option to display Bot a Door. [#179](#179)
- Added option to display Bot a Lock. [#179](#179)
- Added option to display Bot a Faucet.
- Added option to display Bot a Window.
- Added option to display Bot a WindowCovering.
- Added option to display Bot a Garage Door Opener. [#179](#179)

**Full Changelog**: <v1.6.3...v1.7.0>

## [Version 1.6.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.3) (2022-01-03)

## What's Changed

- Quick Fix for for issue not tested in `v1.6.2`.

**Full Changelog**: <v1.6.2...v1.6.3>

## [Version 1.6.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.2) (2022-01-03)

## What's Changed

- Fixed Bug: npm ERR! code 1. [#151](#151)
  - Made `node-switchbot` an optionalDependencies
  - So If `node-switchbot` doesn't get installed successfully then BLE will not work.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.6.1...v1.6.2>

## [Version 1.6.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.1) (2022-01-02)

## What's Changed

- Fixed an issue where when `Adaptive Lighting Shift` was set to -1, Adaptive Lighting would not be removed.
- Fixed an issue with motion sensor refreshStatus that would cause plugin to cause Homebridge restart.
- Fixed Bug: npm ERR! code 1. [#151](#151)
  - Made `node-switchbot` an optionalDependencies
  - So If `node-switchbot` doesn't get installed successfully then BLE will not work.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.6.0...v1.6.1>

## [Version 1.6.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.0) (2021-12-31)

## What's Changed

- Added `scanDuration` config option to set how long BLE scans, Scanning Duration is defaulted to 1 second.
- Now Setting `switch` as the default bot mode for Bots, to change to press, config must be set under `SwitchBot Device Settings` in the Plugin Settings.
- Fixed Bug: Contact Sensor talks about Curtain Light + Motion Sensor. [#164](#164)
- Fixed Bug: Reboot causes No Device Type Set Error. [#172](#172)
- Fixed Bug: Bot Status not working Correction with Switch and Press. [#105](#105), [#130](#130), [#132](#132), [#165](#165), [#174](#174)
- Fixed some issues with the New Logging Options release with v1.5.0, now logging when configured.

**Full Changelog**: <v1.5.0...v1.6.0>

## [Version 1.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.5.0) (2021-12-27)

## What's Changed

### Major Change To `Logging`

- Added the following Logging Options:
  - `Standard`
  - `None`
  - `Debug`
- Removed Device Logging Option, which was pushed into new logging under debug.
- Added Device Logging Override for each Device, by using the Device Config.

### Major Changes to `refreshRate`

- Added an option to override `refreshRate` for each Device, by using the Device Config.

### Other Changes

- Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.4.0...v1.5.0>

## [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>

## [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
- Added Option `Adaptive Lighting Shift` to be able us this value to increase the mired for the Adaptive Lighting update, making the light appear warmer.
- Fixed Bug: Color Bulb can't change color and is not dimmable. [#97](#97)

**Full Changelog**: <v1.2.5...v1.3.0>

## [Version 1.2.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.5) (2021-11-25)

## What's Changed

- Fixed Bug: Where `set_minLux` & `set_maxLux` config settings not effecting OpenAPI Lux.

**Full Changelog**: <v1.2.4...v1.2.5>

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

## What's Changed

- Fixed Bug: Cannot read properties of undefined (reading 'updateCharacteristic').

**Full Changelog**: <v1.2.3...v1.2.4>

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

## What's Changed

- When BLE Connection isn't established, allow for OpenAPI to kick in if `openToken` is supplied.

**Full Changelog**: <v1.2.2...v1.2.3>

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

## What's Changed

- Allow the `configDeviceName` to override `deviceName`.
- Added Logging when BLE Connection wasn't established.

**Full Changelog**: <v1.2.1...v1.2.2>

## [Version 1.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.1) (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>

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

## What's Changed

- Added option to be able to do Bluetooth Low Energy (BLE) Only Connection.
  - Must supply `Device ID` & `Device Name` to the Device Config
  - Must Check `Enable Bluetooth Low Energy (BLE) Connection`
- Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
- Add option to set Min Lux and Max Lux for Curtain's Light Sensor.
- Add `updateHomeKitCharacteristics` to IR Devices to contain all `updateCharacteristics` in one spot.
- Add `Saturation` and `Hue` to Colorbulb.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.1.0...v1.2.0>

## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-11-16)

## What's Changed

- Fixed Bug: Curtains alternate between open/close state. [#85](#85)
- Fixed Bug: IR Fan won't be hidden in Home app. [#90](#90)
- Fixed Bug: `hide_temperature` config option causing `Cannot read property 'updateCharacteristic' of undefined` for Humidifiers. [#89](#89)
- Add option to Hide Curtain's Light Sensor. [#91](#91)
- Add option to Hide Contact Sensor's Motion Sensor or Light Sensor.

**Full Changelog**: <v1.0.2...v1.1.0>

## [Version 1.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.2) (2021-11-15)

## What's Changed

- Fixed Bug: `failed to discover devices. cannot read property 'touppercase' of undefined`. [#84](#84)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.0.1...v1.0.2>

## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2021-11-14)

## What's Changed

- Fixed `Cannot read properties of undefined (reading 'updateCharacteristic')` on Bots. [#77](#77)
- Fixed Temperature not being retrieved for Switchbot Meter. [#78](#78)

**Full Changelog**: <v1.0.0...v1.0.1>

## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2021-11-13)

## What's Changed

- Offical release of homebridge-Switchbot, which combines both BLE and OpenAPI into 1 plugin.
- Adds Light Sensors to Curtains
  - with iOS 15.1 you can set automations on light sensors.
- Adds Motion Sensor to Contact Sensors
- Adds Support Color Bulbs

**Full Changelog**: <v0.1.1...v1.0.0>

## [Version 0.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.1) (2021-09-11)

## What's Changed

- Fix Contact Sensor adding as Motion Sensor instead of Contact Sensor

**Full Changelog**: <v0.1.0...v0.1.1>

## [Version 0.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.0) (2021-09-10)

## What's Changed

- Initial release of homebridge-switchbot.
- Adds Support for Motion & Contact Sensors
- Adds Water Level to Humidifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OpenAPI Issue dealing with OpenAPI (SwitchBotAPI)
Projects
Status: Done
Development

No branches or pull requests

7 participants