homebridge-switchbot: Bug: Curtains alternate between open/close state in 1.0.0 & 1.0.1
Describe The Bug
The curtain state goes to open while closed or closed while open every few minutes even though they’re not being opened or closed
To Reproduce
Nothing, it happens every few minutes regardless whether it’s open or closed
Expected behavior
Should show the actual current state of either open or closed and stay at that
Relevant log output
[15/11/2021, 11:55:48] Homebridge v1.3.6 (HAP v0.9.7) (Homebridge A93C) is running on port 51403.
[15/11/2021, 11:55:49] [SwitchBot] Total SwitchBot Devices Found: 7
[15/11/2021, 11:55:49] [SwitchBot] Adding new accessory: Woonkamer SwitchBot Curtain DeviceID: <HIDDEN>
[15/11/2021, 11:55:49] [SwitchBot] Adding new accessory: Achterdeur SwitchBot Curtain DeviceID: <HIDDEN>
[15/11/2021, 11:55:49] [SwitchBot] Total IR Devices Found: 0
[15/11/2021, 11:57:15] [SwitchBot] Achterdeur SwitchBot, Target Position: 0
[15/11/2021, 11:58:50] [SwitchBot] Achterdeur SwitchBot, Target Position: 100
Config for homebridge-switchbot
{
"name": "SwitchBot",
"credentials": {
"openToken": "HIDDEN",
"notice": "Keep your token a secret!"
},
Screenshots
You can see it best in the Home Assistant history panel (when adding Homebridge to Home Assistant):

Device & Model
SwitchBot Curtain
Node.js Version
v16.13.0
NPM Version
v8.1.3
Homebridge Version
V1.3.6
Homebridge Switchbot Plugin Version
V1.0.1
Homebridge Config UI X Plugin Version
V4.41.2
Operating System
Raspbian
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 48
Commits related to this issue
- revert and start over with implementing BLE for Curtains #85 — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- v1.1.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](h... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- Version 1.1.0 (#93) ## [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/clos... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- more fixes for #85 — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- v2.11.0 # 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/OpenWond... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 8 months ago
I’m up on v1.2.5 now and have BLE enabled. I’m still consistently getting the Homebridge accessory stuck on “Opening” and “Closing”. The HomeKit view is strange. It now consistently goes to a partial state (e.g. 60% open) but after a refresh interval it USUALLY goes to the fully opened or closed state. But not always.
No change here either. When opening, Home app initially goes to “Open” but HB accessory stays at “Opening”. After the refresh interval, the Home App changes to 90% Open (seems to correspond to “set_minstep” value (100-10) with spinning clock.
@donavanbecker not resolved in the beta. Still stays on “closing” or “opening” indefinitely after issuing a command. And now also no longer displays closed correctly at all (edit: this could be related to the “closing” issue though). See screenshot
Not sure if it helps, but fyi none of these issues were there for me on 0.1.1