Support Request: SwitchBot curtain status incorrect
### Describe Your Problem

I have been using the SwitchBot plugin successfully for months with four SwitchBot curtains, but after updating the Homebridge plugin to version 2.2.2 and the firmware on the SwitchBot hub to version 5.2-3.3, the status of my curtains is no longer updating correctly in the Home app. It always shows my curtains as closed, even though the SwitchBot app shows that they are open.

### Relevant log output

```shell
[11/18/2022, 9:59:44 PM] [SwitchBot] Curtain: Beckham’s Curtain scanDuration is less then updateRate, overriding scanDuration with updateRate
[11/18/2022, 9:59:44 PM] [SwitchBot] Curtain: Beckham’s Curtain Config: {"connectionType":"OpenAPI"}
[11/18/2022, 9:59:44 PM] [SwitchBot] Curtain: Bedroom Curtain scanDuration is less then updateRate, overriding scanDuration with updateRate
[11/18/2022, 9:59:44 PM] [SwitchBot] Curtain: Bedroom Curtain Config: {"connectionType":"OpenAPI"}
[11/18/2022, 10:56:50 PM] [Heater Switch] Setting switch to true
[11/19/2022, 12:56:52 AM] [Heater Switch] Setting switch to false
[11/19/2022, 12:56:53 AM] [Heater Switch] Setting switch to false
[11/19/2022, 1:10:13 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[11/19/2022, 1:23:07 AM] [Homebridge UI] Running scheduled instance backup...
[11/19/2022, 1:23:07 AM] [Homebridge UI] Creating temporary backup archive at /var/folders/d1/2_66cqsd1gj6kj6k5ylc3krw0000gn/T/homebridge-backup-zFF1qB/homebridge-backup-0ED5BBC5BCB3.tar.gz
[11/19/2022, 10:00:04 AM] [SwitchBot] Curtain: Bedroom Curtain Checking Status ...
[11/19/2022, 10:00:04 AM] [SwitchBot] Curtain: Beckham’s Curtain Checking Status ...
[11/19/2022, 10:00:05 AM] [SwitchBot] Curtain: Beckham’s Curtain Checking Status ...
[11/19/2022, 10:00:05 AM] [SwitchBot] Curtain: Bedroom Curtain Checking Status ...
[11/19/2022, 11:39:20 AM] [Heater Switch] Setting switch to true
[11/19/2022, 11:48:01 AM] [Homebridge UI] Changes to config.json saved.
[11/19/2022, 11:48:02 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Terminating child process...
[11/19/2022, 11:48:02 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Child process ended
[11/19/2022, 11:48:07 AM] [Homebridge UI] Homebridge restart request received
[11/19/2022, 11:48:07 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[11/19/2022, 11:48:07 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[11/19/2022, 11:48:07 AM] Got SIGTERM, shutting down Homebridge...
[11/19/2022, 11:48:12 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/19/2022, 11:48:17 AM] [HB Supervisor] Restarting Homebridge...
[11/19/2022, 11:48:17 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[11/19/2022, 11:48:17 AM] [HB Supervisor] Started Homebridge v1.5.1 with PID: 46753
[11/19/2022, 11:48:18 AM] Loaded config.json with 2 accessories and 1 platforms.
[11/19/2022, 11:48:18 AM] Loaded 3 cached accessories from cachedAccessories.
[11/19/2022, 11:48:18 AM] ---
[11/19/2022, 11:48:21 AM] Loaded plugin: homebridge-config-ui-x@4.50.2
[11/19/2022, 11:48:21 AM] Registering platform 'homebridge-config-ui-x.config'
[11/19/2022, 11:48:21 AM] ---
[11/19/2022, 11:48:21 AM] Loaded plugin: homebridge-dummy@0.8.0
[11/19/2022, 11:48:21 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[11/19/2022, 11:48:21 AM] ---
[11/19/2022, 11:48:23 AM] Loaded plugin: @switchbot/homebridge-switchbot@2.2.2
[11/19/2022, 11:48:23 AM] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[11/19/2022, 11:48:23 AM] ---
[11/19/2022, 11:48:23 AM] Loading 1 platforms...
[11/19/2022, 11:48:23 AM] Loading 2 accessories...
[11/19/2022, 11:48:23 AM] [My Switch 1] Initializing DummySwitch accessory...
[11/19/2022, 11:48:23 AM] [Heater Switch] Initializing DummySwitch accessory...
[11/19/2022, 11:48:23 AM] [Heater Switch] Setting switch to true
[11/19/2022, 11:48:23 AM] Failed to find plugin to handle accessory Bedroom Fan
[11/19/2022, 11:48:23 AM] Removing orphaned accessory Bedroom Fan
[11/19/2022, 11:48:23 AM] Failed to find plugin to handle accessory Bedroom Curtain
[11/19/2022, 11:48:23 AM] Removing orphaned accessory Bedroom Curtain
[11/19/2022, 11:48:23 AM] Failed to find plugin to handle accessory Beckham’s Curtain
[11/19/2022, 11:48:23 AM] Removing orphaned accessory Beckham’s Curtain
Setup Payload:
X-HM://0023XR8JTKD14
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │  │     
    └────────────┘     
                       
[11/19/2022, 11:48:23 AM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge) is running on port 51826.
[11/19/2022, 11:48:33 AM] [Homebridge UI] Changes to config.json saved.
[11/19/2022, 11:48:34 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Terminating child process...
[11/19/2022, 11:48:34 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Child process ended
[11/19/2022, 11:48:44 AM] [Homebridge UI] Changes to config.json saved.
[11/19/2022, 11:48:44 AM] [Homebridge UI] Running Command: npm uninstall -g @switchbot/homebridge-switchbot
[11/19/2022, 11:48:51 AM] [Homebridge UI] Homebridge restart request received
[11/19/2022, 11:48:51 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[11/19/2022, 11:48:51 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[11/19/2022, 11:48:51 AM] Got SIGTERM, shutting down Homebridge...
[11/19/2022, 11:48:56 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/19/2022, 11:49:01 AM] [HB Supervisor] Restarting Homebridge...
[11/19/2022, 11:49:01 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[11/19/2022, 11:49:01 AM] [HB Supervisor] Started Homebridge v1.5.1 with PID: 46885
[11/19/2022, 11:49:02 AM] Loaded config.json with 2 accessories and 1 platforms.
[11/19/2022, 11:49:02 AM] Loaded 0 cached accessories from cachedAccessories.
[11/19/2022, 11:49:02 AM] ---
[11/19/2022, 11:49:04 AM] Loaded plugin: homebridge-config-ui-x@4.50.2
[11/19/2022, 11:49:04 AM] Registering platform 'homebridge-config-ui-x.config'
[11/19/2022, 11:49:04 AM] ---
[11/19/2022, 11:49:04 AM] Loaded plugin: homebridge-dummy@0.8.0
[11/19/2022, 11:49:04 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[11/19/2022, 11:49:04 AM] ---
[11/19/2022, 11:49:04 AM] Loading 1 platforms...
[11/19/2022, 11:49:04 AM] Loading 2 accessories...
[11/19/2022, 11:49:04 AM] [My Switch 1] Initializing DummySwitch accessory...
[11/19/2022, 11:49:04 AM] [Heater Switch] Initializing DummySwitch accessory...
[11/19/2022, 11:49:04 AM] [Heater Switch] Setting switch to true
Setup Payload:
X-HM://0023XR8JTKD14
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │  │     
    └────────────┘     
                       
[11/19/2022, 11:49:04 AM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge) is running on port 51826.
[11/19/2022, 11:49:45 AM] [Homebridge UI] Running Command: npm install -g @switchbot/homebridge-switchbot@2.2.2
[11/19/2022, 11:52:20 AM] [Homebridge UI] Changes to config.json saved.
[11/19/2022, 11:52:20 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Terminating child process...
[11/19/2022, 11:52:20 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Child process ended
[11/19/2022, 11:52:25 AM] [Homebridge UI] Homebridge restart request received
[11/19/2022, 11:52:25 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[11/19/2022, 11:52:25 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[11/19/2022, 11:52:25 AM] Got SIGTERM, shutting down Homebridge...
[11/19/2022, 11:52:30 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/19/2022, 11:52:35 AM] [HB Supervisor] Restarting Homebridge...
[11/19/2022, 11:52:35 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[11/19/2022, 11:52:35 AM] [HB Supervisor] Started Homebridge v1.5.1 with PID: 48079
[11/19/2022, 11:52:36 AM] Loaded config.json with 2 accessories and 2 platforms.
[11/19/2022, 11:52:36 AM] Loaded 0 cached accessories from cachedAccessories.
[11/19/2022, 11:52:36 AM] ---
[11/19/2022, 11:52:38 AM] Loaded plugin: homebridge-config-ui-x@4.50.2
[11/19/2022, 11:52:38 AM] Registering platform 'homebridge-config-ui-x.config'
[11/19/2022, 11:52:38 AM] ---
[11/19/2022, 11:52:38 AM] Loaded plugin: homebridge-dummy@0.8.0
[11/19/2022, 11:52:38 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[11/19/2022, 11:52:38 AM] ---
[11/19/2022, 11:52:41 AM] Loaded plugin: @switchbot/homebridge-switchbot@2.2.2
[11/19/2022, 11:52:41 AM] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[11/19/2022, 11:52:41 AM] ---
[11/19/2022, 11:52:41 AM] Loading 2 platforms...
[11/19/2022, 11:52:41 AM] [SwitchBot] Initializing SwitchBot platform...
[11/19/2022, 11:52:41 AM] Loading 2 accessories...
[11/19/2022, 11:52:41 AM] [My Switch 1] Initializing DummySwitch accessory...
[11/19/2022, 11:52:41 AM] [Heater Switch] Initializing DummySwitch accessory...
[11/19/2022, 11:52:41 AM] [Heater Switch] Setting switch to true
Setup Payload:
X-HM://0023XR8JTKD14
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │  │     
    └────────────┘     
                       
[11/19/2022, 11:52:42 AM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge) is running on port 51826.
[11/19/2022, 11:52:42 AM] [SwitchBot] Total SwitchBot Devices Found: 6
[11/19/2022, 11:52:42 AM] [SwitchBot] Adding new accessory: Bedroom Fan Bot DeviceID: E51838283B6B
[11/19/2022, 11:52:42 AM] [SwitchBot] Bot: Bedroom Fan does not have bot mode set in the Plugin's SwitchBot Device Settings,
[11/19/2022, 11:52:42 AM] [SwitchBot] Bot: Bedroom Fan is defaulting to "switch" mode, you may experience issues.
[11/19/2022, 11:52:42 AM] [SwitchBot] Bot: Bedroom Fan Config: {"connectionType":"OpenAPI"}
[11/19/2022, 11:52:42 AM] [SwitchBot] Bot: Bedroom Fan Displaying as Outlet
[11/19/2022, 11:52:42 AM] [SwitchBot] Adding new accessory: Beckham’s Curtain Curtain DeviceID: ED1F749ED52A
[11/19/2022, 11:52:42 AM] [SwitchBot] Adding new accessory: Bedroom Curtain Curtain DeviceID: F403D31035CF
[11/19/2022, 11:52:42 AM] [SwitchBot] Curtain: Beckham’s Curtain scanDuration is less then updateRate, overriding scanDuration with updateRate
[11/19/2022, 11:52:42 AM] [SwitchBot] Curtain: Beckham’s Curtain Config: {"connectionType":"OpenAPI"}
[11/19/2022, 11:52:42 AM] [SwitchBot] Curtain: Bedroom Curtain scanDuration is less then updateRate, overriding scanDuration with updateRate
[11/19/2022, 11:52:42 AM] [SwitchBot] Curtain: Bedroom Curtain Config: {"connectionType":"OpenAPI"}
[11/19/2022, 11:53:18 AM] [SwitchBot] Curtain: Beckham’s Curtain Checking Status ...
[11/19/2022, 11:53:46 AM] [SwitchBot] Curtain: Beckham’s Curtain Checking Status ...
[11/19/2022, 11:53:53 AM] [SwitchBot] Curtain: Bedroom Curtain Checking Status ...
[11/19/2022, 11:54:36 AM] [SwitchBot] Curtain: Beckham’s Curtain Checking Status ...
[11/19/2022, 11:54:57 AM] [SwitchBot] Curtain: Bedroom Curtain Checking Status ...
[11/19/2022, 11:58:56 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Terminating child process...
[11/19/2022, 11:58:56 AM] [Homebridge UI] [@switchbot/homebridge-switchbot] Child process ended
```


### Config for homebridge-switchbot

```shell
{
    "bridge": {
        "name": "Homebridge",
        "username": "0E:D5:BB:C5:BC:B3",
        "manufacturer": "homebridge.io",
        "model": "homebridge",
        "port": 51826,
        "pin": "",
        "advertiser": "ciao"
    },
    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
    "ports": {
        "start": 52100,
        "end": 52150,
        "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
    },
    "accessories": [
        {
            "name": "My Switch 1",
            "stateful": false,
            "reverse": false,
            "time": 1000,
            "resettable": false,
            "accessory": "DummySwitch"
        },
        {
            "name": "Heater Switch",
            "stateful": true,
            "reverse": false,
            "time": 1000,
            "resettable": false,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "platform": "config",
            "name": "Config",
            "port": 8581
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "token": "",
                "secret": "",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "logging": "debug"
            },
            "platform": "SwitchBot"
        }
    ]
}
```


### Screenshots

<img width="852" alt="Screen Shot 2022-11-19 at 12 09 06 PM" src="https://user-images.githubusercontent.com/118087130/202867492-77f0117e-e9ef-46a6-b837-45f8ebf87ecd.png">
![Screenshot 2022-11-19 at 12 10 06 PM](https://user-images.githubusercontent.com/118087130/202867517-b1b2b49f-4ebe-4722-8d3c-e1783667d789.jpeg)


### Device & Model

SwitchBot Hub Mini W0202200, SwitchBot Curtain W0701600

### Node.js Version

v18.12.1

### NPM Version

v9.11

### Homebridge Version

v1.5.1

### Homebridge SwitchBot Plugin Version

v2.2.2

### Homebridge Config UI X Plugin Version

v4.50.2

### Operating System

macOS Catalina