Skip to content

Support Request: The Bot does not get triggered despite being connected to BLE #425

Closed
@Lazza

Description

@Lazza

Describe Your Problem

I am trying to activate a SwitchBot Bot via Homebridge. The device is connected correctly via BLE and shows the battery level (it seems). Nevertheless, when triggering the Bot, nothing is performed.

Relevant log output

[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco BLE refreshStatus
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco BLE Address: _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] Bot: SwitchBot bianco BLE Address Found: _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] Bot: SwitchBot bianco Config BLE Address: _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco serviceData: {"model":"H","modelName":"WoHand","mode":false,"state":false,"battery":99}
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco, model: H, modelName: WoHand, mode: false, state: false, battery: 99
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco connected: true
[7/19/2022, 11:14:19 AM] [SwitchBot] _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] Bot: SwitchBot bianco BLE Address Found: _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] Bot: SwitchBot bianco Config BLE Address: _MAC ADDRESS REDACTED_
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco serviceData: {"model":"H","modelName":"WoHand","mode":false,"state":false,"battery":99}
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco, model: H, modelName: WoHand, mode: false, state: false, battery: 99
[7/19/2022, 11:14:19 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco connected: true
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco BLE parseStatus
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco Press Mode, mode: false, On: false
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco BatteryLevel: 99
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco updateCharacteristic On: false
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco updateCharacteristic BatteryLevel: 99
[7/19/2022, 11:14:20 AM] [SwitchBot] [DEBUG] Bot: SwitchBot bianco updateCharacteristic StatusLowBattery: 0

Config for homebridge-switchbot

{
    "bridge": {
        "name": "Homebridge ____",
        "username": "REDACTED",
        "port": 51154,
        "pin": "REDACTED"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "REDACTED",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "C03F________",
                        "configDeviceName": "SwitchBot bianco",
                        "configDeviceType": "Bot",
                        "ble": true,
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        },
                        "logging": "debug"
                    }
                ]
            },
            "platform": "SwitchBot"
        }
    ],
    "disabledPlugins": []
}

Screenshots

Dockerfile

FROM oznu/homebridge:2022-05-21-debian-raspberry-pi
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y bluetooth bluez libbluetooth-dev libudev-dev && rm -rf /var/cache/apt/*

Device & Model

SwitchBot Bot

Node.js Version

v16.15.0

NPM Version

8.5.5

Homebridge Version

v1.5.0

Homebridge SwitchBot Plugin Version

v1.14.1 (2022-06-28)

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian + Docker image (See Dockerfile)

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions