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 not responding to commands #1166

Open
peeversluis opened this issue Jan 22, 2025 · 0 comments
Open

Support Request: Bot not responding to commands #1166

peeversluis opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
pinned question Further information is requested

Comments

@peeversluis
Copy link

Describe Your Problem

I’m unclear why my switchbot Bot isn’t responding to commands from HomeKit thru HomeBridge. Works fine in SwitchBot app via BLE.

Relevant log output

"ce2a85062b8a": {
        "id": "ce2a85062b8a",
        "uuid": "ce2a85062b8a",
        "address": "ce:2a:85:06:2b:8a",
        "addressType": "random",
        "connectable": true,
        "scannable": false,
        "rssi": -44,
        "services": null,
        "mtu": null,
        "state": "disconnected"
      },

}

…
21/01/2025, 21:21:58] [SwitchBot] [DEBUG] Bot: SpaBot bleMac: ce:2a:85:06:2b:8a
[21/01/2025, 21:21:58] [SwitchBot] [DEBUG] Bot: SpaBot Scanning for WoHand devices...
[21/01/2025, 21:21:58] [SwitchBot] [DEBUG] Started Scanning for SwitchBot BLE devices.
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Stopped Scanning for SwitchBot BLE devices.
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot BLEparseStatus
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot (power, battery, deviceMode) = BLE:(undefined, undefined, undefined), current:(false, 100, press)
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot Press Mode, On: false
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot updateHomeKitCharacteristics
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot updateCharacteristic BatteryLevel: 100
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot updateCharacteristic StatusLowBattery: 0
[21/01/2025, 21:22:08] [SwitchBot] [DEBUG] Bot: SpaBot updateCharacteristic On: false
[21/01/2025, 21:22:50] [SwitchBot] [DEBUG] Bot: SpaBot BLEpushChanges
[21/01/2025, 21:22:50] [SwitchBot] [DEBUG] Bot: SpaBot No Changes (BLEpushChanges), On: false OnCached: false
[21/01/2025, 21:23:05] [SwitchBot] [DEBUG] Bot: SpaBot BLERefreshStatus
[21/01/2025, 21:23:05] [SwitchBot] [DEBUG] Bot: SpaBot 'node-switchbot' found: {
  "_events": {},
  "_eventsCount": 1,
  "ready": {},
  "noble": {
    "initialized": true,
    "address": "d8:3a:dd:be:b1:de",
    "_state": "poweredOn",
    "_bindings": {
      "_state": "poweredOn",
      "_addresses": { etc
      },
    }
and a lot more entries and data.

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "token": "token",
        "secret": "secret",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "configDeviceName": "SpaBot",
                "deviceId": "CE2A85062B8A",
                "configDeviceType": "Bot",
                "connectionType": "BLE",
                "scanDuration": 10,
                "type": "switch",
                "mode": "press",
                "doublePress": 1,
                "disableCaching": true,
                "maxRetry": 5,
                "logging": "debug",
                "refreshRate": 360,
                "pushRate": 360
            }
        ],
        "BLE": true,
        "discoverBLE": true,
        "logging": "debug"
    },
    "_bridge": {
        "name": "SpaBot",
        "username": "0E:C5:ED:15:26:29",
        "port": 49536
    },
    "platform": "SwitchBot"
}

Screenshots

Everything seems to be working. Config appears to be okay, but device isn’t budging…
Distance between Raspberry Pi 5 and Switchbot Bot is about 10 feet, maybe even less.
Operating the Bot thru the Switchbot app works fine. I have no hub, because the Bot only uses BLE.

Device & Model

Switchbot Bot

Node.js Version

v22.13.0

NPM Version

10.9.2

Homebridge Version

v1.8.5

Homebridge SwitchBot Plugin Version

v4.1.7

Homebridge Config UI X Plugin Version

v4.68.0

Operating System

Debian GNU/Linux Bookwork (12)

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

No branches or pull requests

6 participants