OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
243 stars 53 forks source link

Support Request: #344

Closed RyderCragie closed 2 years ago

RyderCragie commented 2 years ago

Describe Your Problem

I’m getting an error message.

Relevant log output

07/05/2022, 19:42:15] [SwitchBot] Bot: Ceiling Light does not have bot mode set in the Plugin's SwitchBot Device Settings,
[07/05/2022, 19:42:15] [SwitchBot] Bot: Ceiling Light is defaulting to "switch" mode, you may experience issues.

Config for homebridge-switchbot

{
    "bridge": {
        "name": "Homebridge 1745",
        "username": "*censored*",
        "port": 51568,
        "pin": "*censored*",
        "bind": [
            "Ethernet"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 80,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "loginWallpaper": "https://rydercragie.com/Black.jpg",
            "platform": "config"
        },
        {
            "pruning": {
                "pruneMissingCachedAccessories": false,
                "restartsBeforeMissingAccessoriesPruned": 3,
                "pruneAllAccessoriesNextRestart": false
            },
            "whiteEffects": {
                "simultaniousDevicesColorWhite": true,
                "colorWhiteThreshold": 10,
                "colorWhiteThresholdSimultaniousDevices": 50,
                "colorOffThresholdSimultaniousDevices": 5
            },
            "deviceManagement": {
                "blacklistOrWhitelist": "blacklist",
                "blacklistedUniqueIDs": [
                    ""
                ]
            },
            "advancedOptions": {
                "periodicDiscovery": true,
                "namesWithMacAddress": true,
                "logLevel": 3
            },
            "platform": "homebridge-magichome-dynamic-platform"
        },
        {
            "name": "TuyaWebPlatform",
            "options": {
                "username": "*censored*",
                "password": "*censored*",
                "countryCode": "1",
                "platform": "smart_life"
            },
            "scenes": false,
            "platform": "TuyaWebPlatform"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "*censored*",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "E8:DB:84:E1:C4:BA",
                        "configDeviceName": "Ceiling Light",
                        "configDeviceType": "Bot",
                        "ble": false,
                        "bot": {
                            "mode": "switch",
                            "deviceType": "outlet",
                            "allowPush": false
                        },
                        "refreshRate": 30
                    }
                ]
            },
            "platform": "SwitchBot"
        }
    ],
    "disabledPlugins": []
}

Screenshots

0EB05F7E-99DD-477A-8476-B1D861D87482 A6B978FC-1361-4F8B-9E4F-4A982AA662BF

Device & Model

HP Stream

Node.js Version

v16.13.1

NPM Version

v8.6.0

Homebridge Version

v1.4.1

Homebridge SwitchBot Plugin Version

Beta

Homebridge Config UI X Plugin Version

No response

Operating System

Windows 10

donavanbecker commented 2 years ago

@RyderCragie can you try taking out colons out of your deviceId? so instead of "E8:DB:84:E1:C4:BA" change to this "E8DB84E1C4BA"

RyderCragie commented 2 years ago

Just tried that. The issue still persists. I've also tried reinstalling the plugin.

donavanbecker commented 2 years ago

Please repost config

RyderCragie commented 2 years ago

It's the same but with the colons removed.

HolgerAusB commented 2 years ago

Did you activate the cloud service for the Bot device in your iPhone App? OK, the error log shows something different - just to get shure.

RyderCragie commented 2 years ago

Yes, it is turned on. Hence why it works at all.

RyderCragie commented 2 years ago

Moved to a new machine. This particular problem is now solved. With that comes another 3.

https://github.com/homebridge/homebridge/issues/3155 https://github.com/homebridge/homebridge/issues/3156 https://github.com/homebridge/homebridge/issues/3157