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: Bot failed pushChanges with BLE Connection #174

Closed
prophet42 opened this issue Dec 31, 2021 · 33 comments
Closed

Bug: Bot failed pushChanges with BLE Connection #174

prophet42 opened this issue Dec 31, 2021 · 33 comments
Assignees
Labels
BLE-API issue dealing with BLE API (node-switchbot) bug Something isn't working stale

Comments

@prophet42
Copy link

prophet42 commented Dec 31, 2021

Describe Your Problem

Hi. When I try and use Homebridge-Switchbot plugin I get a "Bot failed pushChanges with BLE Connection" error. The Bot button appears in my accessories but it does not do anything. I do not have a hub. Thanks in advance!

Relevant log output

[12/30/2021, 5:40:32 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "notice": "Keep your token a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "XXXXXXXXXXXX",
                "configDeviceName": "Bot",
                "configDeviceType": "Bot",
                "ble": true,
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            }
        ]
    },
    "platform": "SwitchBot"
}

Screenshots

No response

Device & Model

Switchbot Bot

Node.js Version

v16.13.1

NPM Version

v8.1.2

Homebridge Version

v1.3.9

Homebridge SwitchBot Plugin Version

v1.5.0

Homebridge Config UI X Plugin Version

v4.41.5

Operating System

macOS

@prophet42 prophet42 added the question Further information is requested label Dec 31, 2021
@donavanbecker
Copy link
Collaborator

Don't put the colons in your deviceID

@prophet42
Copy link
Author

Thanks, but the same error without the colons.

[12/30/2021, 6:02:49 PM] [SwitchBot] Bot: Bot On: false
[12/30/2021, 6:03:03 PM] [SwitchBot] Bot: Bot On: true
[12/30/2021, 6:03:03 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection

@donavanbecker
Copy link
Collaborator

Can you post updated config?

Also what version of macOS? And have you followed the prerequisites for noble?

@prophet42
Copy link
Author

prophet42 commented Dec 31, 2021

Sure. It's macOS 10.15.7. The prerequisites for macOS appear to be to install Xcode (bluetooth isn't in security on Catalina). Is that correct?

{
"name": "SwitchBot",
"credentials": {
"notice": "Keep your token a secret!"
},
"options": {
"devices": [
{
"deviceId": "XXXXXXXXXXXX",
"configDeviceName": "Bot",
"configDeviceType": "Bot",
"ble": true,
"bot": {
"mode": "switch",
"deviceType": "switch"
}
}
]
},
"platform": "SwitchBot"
}

@donavanbecker
Copy link
Collaborator

Can you update to the latest beta, then enable debug mode and send more logs

@prophet42
Copy link
Author

Beta installed. Here are the debug logs. Thanks again!

[12/30/2021, 6:32:04 PM] [SwitchBot] [DEBUG] Bot: Bot On: false
[12/30/2021, 6:32:04 PM] [SwitchBot] [DEBUG] Bot: Bot BLE pushChanges
[12/30/2021, 6:32:04 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:32:04 PM] [SwitchBot] [DEBUG] Bot: Bot Press Mode: switch
[12/30/2021, 6:32:04 PM] [SwitchBot] Bot: Bot On: false
[12/30/2021, 6:32:06 PM] [SwitchBot] [DEBUG] Bot: Bot On: true
[12/30/2021, 6:32:07 PM] [SwitchBot] [DEBUG] Bot: Bot BLE pushChanges
[12/30/2021, 6:32:07 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:32:07 PM] [SwitchBot] [DEBUG] Bot: Bot Press Mode: switch
[12/30/2021, 6:32:09 PM] [SwitchBot] Bot: Bot On: true
[12/30/2021, 6:32:09 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection
[12/30/2021, 6:32:09 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection, Error Message: "Now connecting. Wait for a few seconds then try again."
[12/30/2021, 6:32:09 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/30/2021, 6:32:09 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:32:12 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:32:12 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:32:12 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:32:12 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/30/2021, 6:32:12 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:32:15 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: true
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 87
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 87
[12/30/2021, 6:32:19 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: true
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 87
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 87
[12/30/2021, 6:32:22 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0
[12/30/2021, 6:33:20 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/30/2021, 6:33:20 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:33:21 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:33:21 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:33:21 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:33:24 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:33:24 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:33:24 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: true
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 87
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 87
[12/30/2021, 6:33:30 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0

@donavanbecker
Copy link
Collaborator

Looking at these logs it looks like it connected.

@prophet42
Copy link
Author

prophet42 commented Dec 31, 2021

Yes, I was thinking that too. But I still can't control it. Logs from when I push the button:

[12/30/2021, 6:49:42 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection
[12/30/2021, 6:49:42 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection, Error Message: "Now connecting. Wait for a few seconds then try again."
[12/30/2021, 6:49:47 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/30/2021, 6:49:47 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:49:49 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:49:49 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:49:49 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:49:52 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:49:52 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:49:52 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:49:55 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":87}
[12/30/2021, 6:49:55 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 87
[12/30/2021, 6:49:55 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: true
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 87
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 87
[12/30/2021, 6:49:57 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0

@prophet42
Copy link
Author

prophet42 commented Dec 31, 2021

I notice the state it loads the switch in is incorrect. The accessory shows as "on" but the bot is in the off position. Also, when I hit the button in Homebridge the button switches to off, but after a few moments it turns itself back on. Here are the logs around when that happens:

[12/30/2021, 6:54:54 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:54:54 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 85
[12/30/2021, 6:54:54 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0
[12/30/2021, 6:55:56 PM] [SwitchBot] [DEBUG] Bot: Bot On: false
[12/30/2021, 6:56:02 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/30/2021, 6:56:02 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/30/2021, 6:56:02 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":85}
[12/30/2021, 6:56:02 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 85
[12/30/2021, 6:56:02 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:56:03 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":85}
[12/30/2021, 6:56:03 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 85
[12/30/2021, 6:56:03 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:56:06 PM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":85}
[12/30/2021, 6:56:06 PM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 85
[12/30/2021, 6:56:06 PM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: true
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 85
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: true
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 85
[12/30/2021, 6:56:12 PM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0

@donavanbecker
Copy link
Collaborator

@prophet42, can you try the latest beta:

npm version

Click here to find out how to install Beta

@donavanbecker donavanbecker added BLE-API issue dealing with BLE API (node-switchbot) pinned labels Dec 31, 2021
@prophet42
Copy link
Author

prophet42 commented Dec 31, 2021 via email

@donavanbecker
Copy link
Collaborator

@prophet42 Yes, but I pushed a new beta out.

@prophet42
Copy link
Author

Oh, sorry. I misread your message and thought it said "beta.3" not "5". I've updated now. The bot now loads as "off" in accessories but I still can't control it. Thanks for all your help!

[12/31/2021, 8:32:31 AM] [SwitchBot] [DEBUG] Bot: Bot On: true
[12/31/2021, 8:32:31 AM] [SwitchBot] [DEBUG] Bot: Bot BLE pushChanges
[12/31/2021, 8:32:31 AM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/31/2021, 8:32:31 AM] [SwitchBot] [DEBUG] Bot: Bot Press Mode: switch
[12/31/2021, 8:32:33 AM] [SwitchBot] Bot: Bot On: true
[12/31/2021, 8:32:35 AM] [SwitchBot] [DEBUG] Bot: Bot On: false
[12/31/2021, 8:32:35 AM] [SwitchBot] [DEBUG] Bot: Bot BLE pushChanges
[12/31/2021, 8:32:35 AM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/31/2021, 8:32:35 AM] [SwitchBot] [DEBUG] Bot: Bot Press Mode: switch
[12/31/2021, 8:32:36 AM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/31/2021, 8:32:36 AM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":true,"battery":85}
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot, model: H, modelName: WoHand, mode: true, state: true, battery: 85
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot connected: true
[12/31/2021, 8:32:37 AM] [SwitchBot] Bot: Bot On: false
[12/31/2021, 8:32:37 AM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection
[12/31/2021, 8:32:37 AM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection, Error Message: "Now connecting. Wait for a few seconds then try again."
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: false
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 85
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: false
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 85
[12/31/2021, 8:32:37 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0
[12/31/2021, 8:32:40 AM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus
[12/31/2021, 8:32:40 AM] [SwitchBot] [DEBUG] Bot: Bot BLE Address: XX:XX:XX:XX:XX:XX
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot BLE parseStatus
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot Switch Mode, mode: true, On: false
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot BatteryLevel: 85
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic On: false
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic BatteryLevel: 85
[12/31/2021, 8:32:41 AM] [SwitchBot] [DEBUG] Bot: Bot updateCharacteristic StatusLowBattery: 0

@donavanbecker
Copy link
Collaborator

Try controlling more then once. Push fails when doing refresh at the same time.

@prophet42
Copy link
Author

I am not sure what you mean by try controlling more than once. Press the virtual button in Homebridge more than once? I've pressed it repeatedly. Here are the logs:

12/31/2021, 11:21:18 AM] [SwitchBot] Bot: Bot On: false
[12/31/2021, 11:21:18 AM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection
[12/31/2021, 11:21:18 AM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'turnOff')"

@donavanbecker donavanbecker mentioned this issue Dec 31, 2021
donavanbecker added a commit that referenced this issue Dec 31, 2021
## [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
@donavanbecker
Copy link
Collaborator

@prophet42 can you try v1.7.0

@donavanbecker donavanbecker changed the title Support Request: Bug: Bot failed pushChanges with BLE Connection Jan 6, 2022
@donavanbecker donavanbecker added bug Something isn't working and removed question Further information is requested labels Jan 6, 2022
@prophet42
Copy link
Author

prophet42 commented Jan 6, 2022 via email

@donavanbecker
Copy link
Collaborator

Just did. No luck.

Matt
On Jan 6, 2022, 12:48 AM -0500, Donavan Becker @.***>, wrote:

@prophet42 can you try v1.7.0

Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

Can you elaborate?

@prophet42
Copy link
Author

Hey. Sorry I am out of town, so I am doing it remotely. I installed the update and still could not control the bot. But, actually just now I was able to turn it on once (my wife checked for me), but I can't turn it off. I'll paste the logs below. I did wait and try again but no luck controlling it then either. Thanks again for your help.

[1/6/2022, 6:00:28 PM] [SwitchBot] [DEBUG] Bot: Bot BLE Address:
[1/6/2022, 6:00:28 PM] [SwitchBot] [DEBUG] Bot: Bot Press Mode: switch
[1/6/2022, 6:00:32 PM] [SwitchBot] Bot: Bot On: false
[1/6/2022, 6:00:32 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection
[1/6/2022, 6:00:32 PM] [SwitchBot] Bot: Bot failed pushChanges with BLE Connection, Error Message: "Now connecting. Wait for a few seconds then try again."
[1/6/2022, 6:00:33 PM] [SwitchBot] [DEBUG] Bot: Bot BLE refreshStatus

@donavanbecker
Copy link
Collaborator

@prophet42, is there anyway you can put this right by your homebridge device and see if its working?

@prophet42
Copy link
Author

prophet42 commented Jan 7, 2022 via email

@donavanbecker
Copy link
Collaborator

I also added npm and node to my Bluetooth. This is working for me.

You can find where they are installed by doing terminal: which node and which npm

@prophet42
Copy link
Author

prophet42 commented Jan 17, 2022 via email

@donavanbecker
Copy link
Collaborator

navigate to those folders and drag them into the bluetooth security section like you did Terminal.

@prophet42
Copy link
Author

prophet42 commented Jan 17, 2022 via email

@donavanbecker
Copy link
Collaborator

@prophet42 You have Xcode installed?

@prophet42
Copy link
Author

prophet42 commented Jan 17, 2022 via email

@donavanbecker
Copy link
Collaborator

I do have Xcode.

Matt
On Jan 16, 2022, 9:55 PM -0500, Donavan Becker @.***>, wrote:

@prophet42 You have Xcode installed?

Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

And I am guessing you have accepted the terms & Conditions?

@prophet42
Copy link
Author

prophet42 commented Jan 17, 2022 via email

@donavanbecker
Copy link
Collaborator

@prophet42 I would say then till this issue is resolved, BLE won't work.

@rolandjaeger
Copy link

rolandjaeger commented Jan 17, 2022

Hi Donavan!

I encountered the same problem when trying to configure a switch bot to work with Bluetooth only.
First, it worked without any problems. But after playing around a bit with the config (my Raspi Zero 2 W apparently needs a bit longer scan time than just one second), it suddenly stopped working and I got the following in the log during init:
Failed to Discover Devices: Unauthorized Request
and after that, when trying to trigger it
Bot failed pushChanges with BLE Connection

After digging a bit deeper, I noticed that the config suddenly containted these two lines:
"credentials": { "openToken": "admin", "notice": "Keep your token a secret!" },
When I remove them, everything is working fine again.

But every time I make changes to the config through the GUI, these lines are added again (probably because the OpenAPI Token field is a mandatory field) and the apparently the connection attempt is made via OpenAPI despite having set the connection method to BLE.

Hope that helps! Let me know if you need more details.

Thank you for the great work!

@prophet42
Copy link
Author

Thanks for the suggestion @rolandjaeger! I gave it a try, but to no avail. It may be the macOS issue that @donavanbecker mentioned mentioned in the previous comment. Thanks for both your help!

@github-actions
Copy link
Contributor

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

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
BLE-API issue dealing with BLE API (node-switchbot) bug Something isn't working stale
Projects
Status: Done
Development

No branches or pull requests

3 participants