homebridge-switchbot icon indicating copy to clipboard operation
homebridge-switchbot copied to clipboard

Bug: new error log messages with latest version (v3.5.1) for SwitchBot Curtain devices

Open mtressl opened this issue 7 months ago • 1 comments

Describe the Bug

A new error message appears in the log after the latest update; before this update to v3.5.1 the error was not present. Though it seems the curtain devices are working properly.

To Reproduce

latest v3.5.1 with no config changes for SwitchBot Curtain devices (were without error messages before update)

Expected Behavior

no red error messages

Relevant Log Output

[6/28/2024, 5:48:27 PM] [homebridge-switchbot] Curtain: Schlafzimmer Vorhang failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot use 'in' operator to search for 'power' in undefined"

Config for homebridge-switchbot

{
                        "deviceId": "CAD9xxxxBC05",
                        "configDeviceName": "Schlafzimmer Vorhang",
                        "configDeviceType": "Curtain",
                        "connectionType": "OpenAPI",
                        "curtain": {
                            "setOpenMode": "1",
                            "setCloseMode": "1"
                        },
                        "history": true,
                        "logging": "standard"
                    }

Screenshots

No response

Device and Model

Curtain

Node.js Version

v20.15.0

NPM Version

v10.7.0

Homebridge Version

v1.8.3

Homebridge Switchbot Plugin Version

latest

Homebridge Config UI X Plugin Version

v4.56.4

Operating System

Raspbian

mtressl avatar Jun 28 '24 15:06 mtressl