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

Feature Request: Curtain 3 Support #824

Closed
bscheffel opened this issue Sep 14, 2023 · 11 comments
Closed

Feature Request: Curtain 3 Support #824

bscheffel opened this issue Sep 14, 2023 · 11 comments
Assignees
Labels
enhancement New feature or request OpenAPI Issue dealing with OpenAPI (SwitchBotAPI)

Comments

@bscheffel
Copy link

Describe Your Problem

I can't get my switchbot curtain to show in the switchbot homebridge plugin. I have an IR device and Curtain configured in the switchbot app. When I configure the switchbot plugin in home bridge the IR device is found, shows on the device tab, and is added to HomeKit / home app. This works. The curtain device does not show in the plugin at all. I do have cloud services turned on for the curtain and it is linked to the switchbot hub mini and the curtain can be controlled fine in the switchbot app. The debug log does show that the plug sees the curtain on the device list however but it doesn’t show under devices.

Relevant log output

[9/14/2023, 6:40:15 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 101D) is running on port 51436.
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,54,65,49,67,69,67,66,68,48,52,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,108,99,111,110,121,32,67,117,114,116,97,105,110,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,99,117,114,116,97,105,110,68,101,118,105,99,101,115,73,100,115,34,58,91,34,67,50,54,65,49,67,69,67,66,68,48,52,34,93,44,34,99,97,108,105,98,114,97,116,101,34,58,116,114,117,101,44,34,103,114,111,117,112,34,58,102,97,108,115,101,44,34,109,97,115,116,101,114,34,58,116,114,117,101,44,34,111,112,101,110,68,105,114,101,99,116,105,111,110,34,58,34,108,101,102,116,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,119,105,116,99,104,98,111,116,72,117,98,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,48,50,45,50,48,50,51,48,57,49,52,49,52,53,54,45,49,50,49,52,48,52,53,54,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,67,108,111,99,107,34,44,34,114,101,109,111,116,101,84,121,112,101,34,58,34,68,73,89,32,70,97,110,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,54,65,49,67,69,67,66,68,48,52,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,108,99,111,110,121,32,67,117,114,116,97,105,110,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,99,117,114,116,97,105,110,68,101,118,105,99,101,115,73,100,115,34,58,91,34,67,50,54,65,49,67,69,67,66,68,48,52,34,93,44,34,99,97,108,105,98,114,97,116,101,34,58,116,114,117,101,44,34,103,114,111,117,112,34,58,102,97,108,115,101,44,34,109,97,115,116,101,114,34,58,116,114,117,101,44,34,111,112,101,110,68,105,114,101,99,116,105,111,110,34,58,34,108,101,102,116,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,119,105,116,99,104,98,111,116,72,117,98,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,48,50,45,50,48,50,51,48,57,49,52,49,52,53,54,45,49,50,49,52,48,52,53,54,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,67,108,111,99,107,34,44,34,114,101,109,111,116,101,84,121,112,101,34,58,34,68,73,89,32,70,97,110,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":556,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] statusCode: 200
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] headers: {"date":"Thu, 14 Sep 2023 22:39:28 GMT","content-type":"application/json","content-length":"556","connection":"keep-alive","x-amzn-requestid":"f006855c-f9a9-4145-8915-c829ee4d3dfd","x-amz-apigw-id":"LRLBDG7AIAMEjkg=","x-amzn-trace-id":"Root=1-65038ba0-7fb1336a2b5bf1a14942be9f;Sampled=0;lineage=c8c2b0f2:0|bf95bacf:0"}
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] devicesAPI: {"statusCode":100,"body":{"deviceList":[{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202309141456-12140456","deviceName":"Clock","remoteType":"DIY Fan","hubDeviceId":"CA3EA229345C"}]},"message":"success"}
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] devicesAPI Body: {"deviceList":[{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202309141456-12140456","deviceName":"Clock","remoteType":"DIY Fan","hubDeviceId":"CA3EA229345C"}]}
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] devicesAPI StatusCode: 100
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] statusCode: 200 & devicesAPI StatusCode: 100
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DeviceLists: [{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}]
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DeviceLists Length: 2
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] SwitchBot Device Config Set: [{"deviceId":"C26A1CECBD04","configDeviceName":"Balcony Curtain","configDeviceType":"Curtain","connectionType":"OpenAPI","scanDuration":1,"curtain":{"setOpenMode":"0","setCloseMode":"0"},"external":false,"logging":"debug"}]
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] SwitchBot Devices: [{"deviceId":"C26A1CECBD04","configDeviceName":"Balcony Curtain","configDeviceType":"Curtain","connectionType":"OpenAPI","scanDuration":1,"curtain":{"setOpenMode":"0","setCloseMode":"0"},"external":false,"logging":"debug","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}]
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] Discovered Hub Mini: CA3EA229345C
[9/14/2023, 6:40:16 PM] [SwitchBot] Total SwitchBot Devices Found: 2
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] Discovered DIY Fan: 02-202309141456-12140456
[9/14/2023, 6:40:16 PM] [SwitchBot] Restoring existing accessory from cache: Clock DeviceID: 02-202309141456-12140456
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock Using Platform Config Logging: debug
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock Config: {"connectionType":"OpenAPI"}
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock accessory.context.FirmwareRevision: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock device.firmware: undefined
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock this.platform.version: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock setFirmwareRevision: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock accessory.context.FirmwareRevision: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock device.firmware: undefined
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock this.platform.version: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock setFirmwareRevision: 2.1.1
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock RotationSpeed Characteristic was not removed/added, Clear Cache on Clock to remove Chracteristic
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan: Clock Swing Mode Characteristic was not removed/added, Clear Cache on Clock To Remove Chracteristic
[9/14/2023, 6:40:16 PM] [SwitchBot] [DEBUG] DIY Fan uuid: 02-202309141456-12140456-DIY Fan, (0f01fae2-2385-48b3-b7e3-4867a7c5627a)
[9/14/2023, 6:40:16 PM] [SwitchBot] Total IR Devices Found: 1

Config for homebridge-switchbot

"bridge": {
        "name": "Homebridge 101D",
        "username": "0E:3D:23:4C:CE:A7",
        "port": 51436,
        "pin": "225-59-862"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "token": "8a7732c42c8e2b7a067741ba3ea63424c083aeb4652c8ccf005446cf49956f45b7f71daa26f73ab35801aa593e8a1ebd",
                "secret": "8562ea6cc7ae151bc0ce04af6dafe7ec",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "C26A1CECBD04",
                        "configDeviceName": "Balcony Curtain",
                        "configDeviceType": "Curtain",
                        "connectionType": "OpenAPI",
                        "scanDuration": 1,
                        "curtain": {
                            "setOpenMode": "0",
                            "setCloseMode": "0"
                        },
                        "external": false,
                        "logging": "debug"
                    }
                ],
                "logging": "debug"
            },
            "platform": "SwitchBot"
        }
    ],
    "disabledPlugins": []
}

Screenshots

IMG_4FE9BBDEA6B6-1
IMG_543E30B4404A-1
IMG_470536F913A2-1

Device & Model

Switchbot Curtain 3 (firmware v0.7) MiniHub (firmware v5.4-3.8)

Node.js Version

v18.17.1

NPM Version

?

Homebridge Version

v1.6.1

Homebridge SwitchBot Plugin Version

v2.8.2

Homebridge Config UI X Plugin Version

v.4.50.4

Operating System

MacOS

@donavanbecker
Copy link
Collaborator

same is #816.
Can you try the latest beta:

npm version

Click here to find out how to install Beta

And please provide debug logs.

@donavanbecker donavanbecker changed the title Support Request: Curtain not showing up in Switchbot home bridge plug in or HomeKit Support Request: Curtain 3 Support Sep 15, 2023
@donavanbecker donavanbecker changed the title Support Request: Curtain 3 Support Feature Request: Curtain 3 Support Sep 15, 2023
@donavanbecker donavanbecker added enhancement New feature or request OpenAPI Issue dealing with OpenAPI (SwitchBotAPI) and removed question Further information is requested labels Sep 15, 2023
@bscheffel
Copy link
Author

bscheffel commented Sep 15, 2023 via email

@donavanbecker
Copy link
Collaborator

Can you try the latest beta:

npm version

Click here to find out how to install Beta

@bscheffel
Copy link
Author

bscheffel commented Sep 16, 2023 via email

@donavanbecker
Copy link
Collaborator

donavanbecker commented Sep 16, 2023

First, please respond on GitHub and not through email as it adds a lot of extra stuff (had to delete the extra stuff)

Second I need logs, and version of beta you are on.

@bscheffel
Copy link
Author

bscheffel commented Sep 16, 2023

Sorry, will only reply on GitHub.

The plugin version is: v2.9.1-beta.2

Below are the debug logs. The curtain device that is not showing is the Balcony Curtain that appears in the device list in the logs.

[9/16/2023, 9:58:54 AM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 101D) is running on port 51436.
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,54,65,49,67,69,67,66,68,48,52,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,108,99,111,110,121,32,67,117,114,116,97,105,110,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,99,117,114,116,97,105,110,68,101,118,105,99,101,115,73,100,115,34,58,91,34,67,50,54,65,49,67,69,67,66,68,48,52,34,93,44,34,99,97,108,105,98,114,97,116,101,34,58,116,114,117,101,44,34,103,114,111,117,112,34,58,102,97,108,115,101,44,34,109,97,115,116,101,114,34,58,116,114,117,101,44,34,111,112,101,110,68,105,114,101,99,116,105,111,110,34,58,34,108,101,102,116,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,57,50,65,52,66,65,48,67,48,65,53,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,84,111,114,99,104,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,66,111,116,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,119,105,116,99,104,98,111,116,72,117,98,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,48,50,45,50,48,50,51,48,57,49,52,49,52,53,54,45,49,50,49,52,48,52,53,54,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,67,108,111,99,107,34,44,34,114,101,109,111,116,101,84,121,112,101,34,58,34,68,73,89,32,70,97,110,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,67,50,54,65,49,67,69,67,66,68,48,52,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,66,97,108,99,111,110,121,32,67,117,114,116,97,105,110,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,99,117,114,116,97,105,110,68,101,118,105,99,101,115,73,100,115,34,58,91,34,67,50,54,65,49,67,69,67,66,68,48,52,34,93,44,34,99,97,108,105,98,114,97,116,101,34,58,116,114,117,101,44,34,103,114,111,117,112,34,58,102,97,108,115,101,44,34,109,97,115,116,101,114,34,58,116,114,117,101,44,34,111,112,101,110,68,105,114,101,99,116,105,111,110,34,58,34,108,101,102,116,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,57,50,65,52,66,65,48,67,48,65,53,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,84,111,114,99,104,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,66,111,116,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,44,123,34,100,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,83,119,105,116,99,104,98,111,116,72,117,98,77,105,110,105,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,72,117,98,32,77,105,110,105,34,44,34,101,110,97,98,108,101,67,108,111,117,100,83,101,114,118,105,99,101,34,58,116,114,117,101,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,48,48,48,48,48,48,48,48,48,48,48,48,34,125,93,44,34,105,110,102,114,97,114,101,100,82,101,109,111,116,101,76,105,115,116,34,58,91,123,34,100,101,118,105,99,101,73,100,34,58,34,48,50,45,50,48,50,51,48,57,49,52,49,52,53,54,45,49,50,49,52,48,52,53,54,34,44,34,100,101,118,105,99,101,78,97,109,101,34,58,34,67,108,111,99,107,34,44,34,114,101,109,111,116,101,84,121,112,101,34,58,34,68,73,89,32,70,97,110,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,125,93,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":679,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] statusCode: 200
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] headers: {"date":"Sat, 16 Sep 2023 13:58:11 GMT","content-type":"application/json","content-length":"679","connection":"keep-alive","x-amzn-requestid":"24c8083e-bf7e-4d9b-8f76-1ba3b69f6fca","x-amz-apigw-id":"LWkiEGHEIAMETNg=","x-amzn-trace-id":"Root=1-6505b473-6b7f29ba713d384b055682da;Sampled=0;lineage=c8c2b0f2:0|bf95bacf:0"}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] devicesAPI: {"statusCode":100,"body":{"deviceList":[{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"C92A4BA0C0A5","deviceName":"Torch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"CA3EA229345C"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202309141456-12140456","deviceName":"Clock","remoteType":"DIY Fan","hubDeviceId":"CA3EA229345C"}]},"message":"success"}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] devicesAPI Body: {"deviceList":[{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"C92A4BA0C0A5","deviceName":"Torch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"CA3EA229345C"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202309141456-12140456","deviceName":"Clock","remoteType":"DIY Fan","hubDeviceId":"CA3EA229345C"}]}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] devicesAPI StatusCode: 100
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] statusCode: 200 & devicesAPI StatusCode: 100
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DeviceLists: [{"deviceId":"C26A1CECBD04","deviceName":"Balcony Curtain","enableCloudService":true,"hubDeviceId":"CA3EA229345C","curtainDevicesIds":["C26A1CECBD04"],"calibrate":true,"group":false,"master":true,"openDirection":"left"},{"deviceId":"C92A4BA0C0A5","deviceName":"Torch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"CA3EA229345C"},{"deviceId":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}]
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DeviceLists Length: 3
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Discovered Bot: C92A4BA0C0A5
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Discovered Hub Mini: CA3EA229345C
[9/16/2023, 9:58:54 AM] [SwitchBot] Total SwitchBot Devices Found: 3
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Discovered DIY Fan: 02-202309141456-12140456
[9/16/2023, 9:58:54 AM] [SwitchBot] Restoring existing accessory from cache: Clock DeviceID: 02-202309141456-12140456
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Using Platform Config Logging: debug
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Config: {"connectionType":"OpenAPI"}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan: Clock accessory.context.FirmwareRevision: 2.1.1
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan: Clock RotationSpeed Characteristic was not removed/added, Clear Cache on Clock to remove Chracteristic
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Swing Mode Characteristic was not removed/added, Clear Cache on Clock To Remove Chracteristic
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] DIY Fan uuid: 02-202309141456-12140456-DIY Fan, (0f01fae2-2385-48b3-b7e3-4867a7c5627a)
[9/16/2023, 9:58:54 AM] [SwitchBot] Total IR Devices Found: 1
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Device: Torch registerDevice: true
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Device: Torch connectionType: OpenAPI, will display in HomeKit
[9/16/2023, 9:58:54 AM] [SwitchBot] Restoring existing accessory from cache: Torch DeviceID: C92A4BA0C0A5
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Using Platform Config Logging: debug
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Using Device Type: SwitchBot: Bot, from Accesory Cache.
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Using Platform Config refreshRate: 120
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Using Default Bot pushRatePress: 15
[9/16/2023, 9:58:54 AM] [SwitchBot] Bot: Torch does not have bot mode set in the Plugin's SwitchBot Device Settings,
[9/16/2023, 9:58:54 AM] [SwitchBot] Bot: Torch is defaulting to "switch" mode, you may experience issues.
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Allowing Push Changes: false
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Config: {"connectionType":"OpenAPI"}
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch openAPIRefreshStatus
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch accessory.context.FirmwareRevision: V4.5
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch Displaying as Outlet
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic On: false
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic BatteryLevel: 100
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic StatusLowBattery: 0
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot: Torch FirmwareRevision: undefined
[9/16/2023, 9:58:54 AM] [SwitchBot] [DEBUG] Bot uuid: C92A4BA0C0A5-Bot, (74d9b46f-8378-4fa9-ad4e-9b86c9091d1a)
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch body: {"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,67,57,50,65,52,66,65,48,67,48,65,53,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,66,111,116,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,118,101,114,115,105,111,110,34,58,34,86,52,46,53,34,44,34,112,111,119,101,114,34,58,34,111,110,34,44,34,98,97,116,116,101,114,121,34,58,49,57,44,34,100,101,118,105,99,101,77,111,100,101,34,58,34,112,114,101,115,115,77,111,100,101,34,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"tail":{"data":{"type":"Buffer","data":[123,34,115,116,97,116,117,115,67,111,100,101,34,58,49,48,48,44,34,98,111,100,121,34,58,123,34,100,101,118,105,99,101,73,100,34,58,34,67,57,50,65,52,66,65,48,67,48,65,53,34,44,34,100,101,118,105,99,101,84,121,112,101,34,58,34,66,111,116,34,44,34,104,117,98,68,101,118,105,99,101,73,100,34,58,34,67,65,51,69,65,50,50,57,51,52,53,67,34,44,34,118,101,114,115,105,111,110,34,58,34,86,52,46,53,34,44,34,112,111,119,101,114,34,58,34,111,110,34,44,34,98,97,116,116,101,114,121,34,58,49,57,44,34,100,101,118,105,99,101,77,111,100,101,34,58,34,112,114,101,115,115,77,111,100,101,34,125,44,34,109,101,115,115,97,103,101,34,58,34,115,117,99,99,101,115,115,34,125]},"next":null},"length":1},"length":189,"pipes":[],"flowing":null,"ended":true,"endEmitted":false,"reading":false,"constructed":true,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":true,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":0}
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch statusCode: 200
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch headers: {"date":"Sat, 16 Sep 2023 13:58:11 GMT","content-type":"application/json","content-length":"189","connection":"keep-alive","x-amzn-requestid":"559fc855-92ed-481b-8d9b-4ae27fa1caab","x-amz-apigw-id":"LWkiHGEdoAMEFWA=","x-amzn-trace-id":"Root=1-6505b473-110f3f4575857183001654bc;Sampled=0;lineage=bf95bacf:0"}
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch deviceStatus: {"statusCode":100,"body":{"deviceId":"C92A4BA0C0A5","deviceType":"Bot","hubDeviceId":"CA3EA229345C","version":"V4.5","power":"on","battery":19,"deviceMode":"pressMode"},"message":"success"}
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch deviceStatus body: {"deviceId":"C92A4BA0C0A5","deviceType":"Bot","hubDeviceId":"CA3EA229345C","version":"V4.5","power":"on","battery":19,"deviceMode":"pressMode"}
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch deviceStatus statusCode: 100
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch statusCode: 200 & deviceStatus StatusCode: 100
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch openAPIparseStatus
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch On: false
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch BatteryLevel: 19, StatusLowBattery: 0
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic On: false
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic BatteryLevel: 19
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic StatusLowBattery: 0
[9/16/2023, 9:58:55 AM] [SwitchBot] [DEBUG] Bot: Torch updateCharacteristic FirmwareRevision: V4.5

@donavanbecker
Copy link
Collaborator

Sorry, will only reply on GitHub.

Thanks, just so much easier to read without the extra stuff.

@donavanbecker
Copy link
Collaborator

@bscheffel Did you change your config?

@bscheffel
Copy link
Author

Yes - I just got the Hub 2 and added the Curtain 3 to HomeKit via Matter.

@donavanbecker
Copy link
Collaborator

Well that will work too. But if you would have put your config back to what you put up above it should have worked.

@donavanbecker
Copy link
Collaborator

See this issue #816. If you set your config correctly Curtain 3 will display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OpenAPI Issue dealing with OpenAPI (SwitchBotAPI)
Projects
None yet
Development

No branches or pull requests

6 participants