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

Support Request: BOT STOPPED WORKING ON BLE #1027

Open
att11 opened this issue Aug 20, 2024 · 1 comment
Open

Support Request: BOT STOPPED WORKING ON BLE #1027

att11 opened this issue Aug 20, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@att11
Copy link

att11 commented Aug 20, 2024

Describe Your Problem

BOT over BLE returns error message

Relevant log output

[20/08/2024, 02:31:39] [SwitchBot] [DEBUG] Bot: AC Set On: 0
[20/08/2024, 02:31:54] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges
[20/08/2024, 02:31:54] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges On: true OnCached: false
[20/08/2024, 02:31:54] [SwitchBot] [DEBUG] Bot: AC 'node-switchbot' found: [object Object]
[20/08/2024, 02:31:54] [SwitchBot] [DEBUG] Bot: AC BLE Address: f8:a4:79:8a:02:4c
[20/08/2024, 02:31:54] [SwitchBot] [DEBUG] Bot: AC Bot Mode: press
[20/08/2024, 02:31:59] [SwitchBot] Bot: AC On: true
[20/08/2024, 02:31:59] [SwitchBot] Bot: AC failed BLEpushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'press')"
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges On: true OnCached: false
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC 'node-switchbot' found: [object Object]
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC BLE Address: f8:a4:79:8a:02:4c
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC Bot Mode: press
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:32:09] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:32:14] [SwitchBot] Bot: AC On: true
[20/08/2024, 02:32:14] [SwitchBot] Bot: AC failed BLEpushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'press')"
[20/08/2024, 02:32:24] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:32:24] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:32:24] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:32:25] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:32:25] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:32:25] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:32:58] [Homebridge UI] [att] Accessory layout changes saved.
[20/08/2024, 02:33:16] [SwitchBot] [DEBUG] Bot: AC Set On: 1
[20/08/2024, 02:33:32] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges
[20/08/2024, 02:33:32] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges On: true OnCached: false
[20/08/2024, 02:33:32] [SwitchBot] [DEBUG] Bot: AC 'node-switchbot' found: [object Object]
[20/08/2024, 02:33:32] [SwitchBot] [DEBUG] Bot: AC BLE Address: f8:a4:79:8a:02:4c
[20/08/2024, 02:33:32] [SwitchBot] [DEBUG] Bot: AC Bot Mode: press
[20/08/2024, 02:33:37] [SwitchBot] Bot: AC On: true
[20/08/2024, 02:33:37] [SwitchBot] Bot: AC failed BLEpushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'press')"
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC BLEpushChanges On: true OnCached: false
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC 'node-switchbot' found: [object Object]
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC BLE Address: f8:a4:79:8a:02:4c
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC Bot Mode: press
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:33:47] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:33:52] [SwitchBot] Bot: AC On: true
[20/08/2024, 02:33:52] [SwitchBot] Bot: AC failed BLEpushChanges with BLE Connection, Error Message: "Cannot read properties of undefined (reading 'press')"
[20/08/2024, 02:34:02] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:34:02] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:34:02] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:34:25] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:34:25] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:34:25] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c
[20/08/2024, 02:36:25] [SwitchBot] [DEBUG] Bot: AC BLERefreshStatus
[20/08/2024, 02:36:25] [SwitchBot] [DEBUG] Bot: AC is listening to Platform BLE.
[20/08/2024, 02:36:25] [SwitchBot] [DEBUG] Bot: AC bleMac: f8:a4:79:8a:02:4c

Config for homebridge-switchbot

"devices": [
                {
                    "type": "bot",
                    "name": "AC Central",
                    "address": "xxxxxxxxxx",
                    "autoTurnOffInPressMode": false
                }
            ],
            "name": "SwitchBotPlatform",
            "platform": "SwitchbotBluetoothPlatform"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "xxxxxxxxxxxxxxx",
                        "configDeviceName": "AC",
                        "configDeviceType": "Bot",
                        "connectionType": "BLE",
                        "bot": {
                            "mode": "press",
                            "deviceType": "fan",
                            "doublePress": 1
                        },
                        "offline": true,
                        "external": false,
                        "logging": "debug"
                    }
                ],
                "BLE": true,
                "logging": "debug"
            },
            "platform": "SwitchBot"
        }
    ],

Screenshots

No response

Device & Model

Raspberry Pi 4

Node.js Version

v20.15.0

NPM Version

v20.15.0

Homebridge Version

v 1.8.4

Homebridge SwitchBot Plugin Version

v3.7.0

Homebridge Config UI X Plugin Version

v.4.56.4

Operating System

Raspbian

@donavanbecker
Copy link
Collaborator

Can you try the latest beta:

npm version

Click here to find out how to install Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants