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 Device does not work #1161

Open
FgPy93 opened this issue Jan 7, 2025 · 0 comments
Open

Bug: BLE Device does not work #1161

FgPy93 opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@FgPy93
Copy link

FgPy93 commented Jan 7, 2025

Describe the Bug

Got a Switchbot Bot. Wether it was declared as switch or press mode neither works.

The prerequisites for the BLE mode were met as far as I can tell from the docs. Identification of the switchbot works with the bluetooth of the raspi. But the communication via the plug-in does not work.

To Reproduce

Add Switchbot Bot to Homebridge Setup on Raspberry Pi.

Expected Behavior

Depends: When declared as switch an error code is espected. Declared in "press" mode nothing happens.

Relevant Log Output

[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür Switch Mode, On: false
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür BatteryLevel: 100
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür StatusLowBattery: 0
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateHomeKitCharacteristics
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic BatteryLevel: 100
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic StatusLowBattery: 0
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic On: false
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateHomeKitCharacteristics
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic BatteryLevel: 100
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic StatusLowBattery: 0
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic On: false
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateHomeKitCharacteristics
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic BatteryLevel: 100
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic StatusLowBattery: 0
[07/01/2025, 17:46:15] [SwitchBot] [DEBUG] Bot: Haustür updateCharacteristic On: false
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Bot: Haustür value: true
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Bot: Haustür BLEpushChanges
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Bot: Haustür BLEpushChanges On: true OnCached: false
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Bot: Haustür bleMac: ce:2a:44:06:3f:49
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Bot: Haustür Bot Mode: switch
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] [parseAdvertising.ce2a44063f49.H] return {"id":"ce2a44063f49","address":"ce:2a:44:06:3f:49","rssi":-67,"serviceData":{"model":"H","modelName":"WoHand","modelFriendlyName":"Bot","mode":true,"state":false,"battery":100}}
[07/01/2025, 17:46:19] [SwitchBot] [DEBUG] Stopped Scanning for SwitchBot BLE devices.
[07/01/2025, 17:46:19] [SwitchBot] Bot: Haustür On: true
[07/01/2025, 17:46:19] [SwitchBot] Bot: Haustür failed BLEpushChanges with BLE Connection, Error Message: "Converting circular structure to JSON\n    --> starting at object with constructor 'Timeout'\n    |     property '_idlePrev' -> object with constructor 'TimersList'\n    --- property '_idleNext' closes the circle"

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "configDeviceName": "Haustür",
                "deviceId": "ce:2a:44:06:3f:49",
                "configDeviceType": "Bot",
                "connectionType": "BLE",
                "type": "switch",
                "mode": "switch",
                "external": false,
                "logging": "debug"
            }
        ],
        "discoverBLE": true,
        "logging": "debug",
        "allowInvalidCharacters": true
    },
    "platform": "SwitchBot"
}

Screenshots

No response

Device and Model

Raspberry Pi 3

Node.js Version

v23.5.0

NPM Version

10.9.2

Homebridge Version

1.8.5

Homebridge Switchbot Plugin Version

4.1.7

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

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

No branches or pull requests

6 participants