homebridge-switchbot icon indicating copy to clipboard operation
homebridge-switchbot copied to clipboard

Question: Why do I see this in the log every time the plugin runs a scan?

Open hansw1204 opened this issue 9 months ago • 1 comments

Describe the Bug

I understand these errors can occur occasionally but I see multiple errors in the log at every scan.

To Reproduce

running plugin

Expected Behavior

no error messages

Relevant Log Output

[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB SR Internal Server Error,    An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB SR Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Balcony Internal Server Error,       An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Balcony Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Bedroom Internal Server Error,       An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Bedroom Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/29/2024, 9:47:51 AM] [SwitchBot] Bot: SwitchBot Bot Internal Server Error,   An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] Bot: SwitchBot Bot Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Office Internal Server Error,        An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB Office Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB BathR Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[4/29/2024, 9:47:51 AM] [SwitchBot] WoIOSensor: SB BathR Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "token": "10ec1830c584d0efd9fa50f257517fc5602283d250f6dfe9d519b4a4a1d85b08fbb44dc297ec0650231b01057b8e6aaa",
        "secret": "c1224a98bd9c14fac354b2602c610b5f",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "64E833E4BE64",
                "configDeviceName": "SwitchBot Hub 2",
                "configDeviceType": "Hub 2",
                "lock": {
                    "activate_latchbutton": false
                },
                "history": true,
                "firmware": "1.5-1.1",
                "refreshRate": 360
            },
            {
                "deviceId": "D2353334687D",
                "configDeviceName": "SwitchBot Bot",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "press",
                    "deviceType": "door",
                    "allowPush": true,
                    "doublePress": 1
                },
                "lock": {
                    "activate_latchbutton": false
                },
                "firmware": "6.6",
                "refreshRate": 360,
                "external": false
            },
            {
                "deviceId": "D1B95C6CA12E",
                "configDeviceName": "SB Balcony",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4",
                "external": false
            },
            {
                "deviceId": "DEB95B5130DE",
                "configDeviceName": "SB Bedroom",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4"
            },
            {
                "deviceId": "FD81452A7817",
                "configDeviceName": "SB BathR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4"
            },
            {
                "deviceId": "EE927C000563",
                "configDeviceName": "SB LR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true
            },
            {
                "deviceId": "ED5B287A4053",
                "configDeviceName": "SB DR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true
            },
            {
                "deviceId": "CF160F90171D",
                "configDeviceName": "SB SR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true
            },
            {
                "deviceId": "F4CA70379451",
                "configDeviceName": "SB SBathR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true
            }
        ],
        "refreshRate": 360
    },
    "_bridge": {
        "username": "0E:60:3D:E2:5A:D4",
        "port": 34884
    },
    "platform": "SwitchBot"
}

Screenshots

NA

Device and Model

SwitchBot Hub 2, SwitchBot bot, multiple outdoor sensors

Node.js Version

v18.19.0

NPM Version

v10.1.0

Homebridge Version

v1.8.1

Homebridge Switchbot Plugin Version

v3.4.0

Homebridge Config UI X Plugin Version

v4.56.2

Operating System

Docker

hansw1204 avatar Apr 29 '24 14:04 hansw1204

Same here. Every few minutes… IMG_1021

powjk avatar Apr 30 '24 21:04 powjk

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 16 '24 11:05 github-actions[bot]

Hi, This issue seems to be resolved. The log has been clean for a few days now. Many thanks!

From: github-actions[bot] @.> Date: Thursday, May 16, 2024 at 07:46 To: OpenWonderLabs/homebridge-switchbot @.> Cc: HaWi @.>, Author @.> Subject: Re: [OpenWonderLabs/homebridge-switchbot] Question: Why do I see this in the log every time the plugin runs a scan? (Issue #965)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenWonderLabs/homebridge-switchbot/issues/965#issuecomment-2115012382, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACKHLVJHDDDT3RLJSGOZ7YDZCSMBHAVCNFSM6AAAAABG6NRL6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVGAYTEMZYGI. You are receiving this because you authored the thread.Message ID: @.***>

hansw1204 avatar May 16 '24 13:05 hansw1204