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: BLE Curtain Control Broken #1077

Open
ukiews opened this issue Oct 14, 2024 · 2 comments
Open

Bug: BLE Curtain Control Broken #1077

ukiews opened this issue Oct 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working pinned

Comments

@ukiews
Copy link

ukiews commented Oct 14, 2024

Describe the Bug

This seems to be a carryover of this:[ #1007 (comment)](#1007 (comment))

However, with version 4.0 my BLE control is completely broken.

To Reproduce

Update from 3.8 to 4.0

Relevant Log Output

[10/14/2024, 2:23:26 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Target Position': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[10/14/2024, 2:23:27 PM] [SwitchBot] Curtain3: LeftCurtain TypeError: Cannot read properties of undefined (reading 'runToPos')
[10/14/2024, 2:23:27 PM] [SwitchBot] Curtain3: LeftCurtain Retrying
[10/14/2024, 2:23:28 PM] [SwitchBot] Curtain3: LeftCurtain TypeError: Cannot read properties of undefined (reading 'runToPos')
[10/14/2024, 2:23:28 PM] [SwitchBot] Curtain3: LeftCurtain Retrying
[10/14/2024, 2:23:29 PM] [SwitchBot] Curtain3: LeftCurtain TypeError: Cannot read properties of undefined (reading 'runToPos')
[10/14/2024, 2:23:29 PM] [SwitchBot] Curtain3: LeftCurtain Retrying
[10/14/2024, 2:23:30 PM] [SwitchBot] Curtain3: LeftCurtain TypeError: Cannot read properties of undefined (reading 'runToPos')
[10/14/2024, 2:23:30 PM] [SwitchBot] Curtain3: LeftCurtain Retrying
[10/14/2024, 2:23:31 PM] [SwitchBot] Curtain3: LeftCurtain failed BLEpushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'runToPos')"

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "...",
                        "configDeviceName": "LeftCurtain",
                        "configDeviceType": "Curtain3",
                        "connectionType": "BLE",
                        "customBLEaddress": "...",
                        "curtain": {
                            "setOpenMode": "1",
                            "setCloseMode": "0",
                            "silentModeSwitch": true,
                            "hide_lightsensor": true
                        },
                        "external": true
                    },
                    {
                        "deviceId": "...",
                        "configDeviceName": "RightCurtain",
                        "configDeviceType": "Curtain3",
                        "connectionType": "BLE",
                        "curtain": {
                            "setOpenMode": "1",
                            "setCloseMode": "0",
                            "silentModeSwitch": true,
                            "hide_lightsensor": true
                        },
                        "external": true
                    }
                ],
                "BLE": true
            },
            "_bridge": {
                "username": "...",
                "port": 59906
            },
            "platform": "SwitchBot"
        }
    ],

Device and Model

Raspberry Pi 4

Node.js Version

20.17.0

NPM Version

10.2.4

Homebridge Version

1.8.4

Homebridge Switchbot Plugin Version

4

@ukiews
Copy link
Author

ukiews commented Oct 30, 2024

any word on this?

@hqy2000
Copy link

hqy2000 commented Nov 20, 2024

I'm also having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned
Projects
None yet
Development

No branches or pull requests

7 participants