-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Comments
same is #816. Click here to find out how to install Beta And please provide debug logs. |
I updated the plugin to the v.29 beta 23 version and restarted homebridge. Still no curtains appear – here is the debug log:
[9/15/2023, 6:50:26 AM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 101D) is running on port 51436.
[9/15/2023, 6:50:27 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,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/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] statusCode: 200
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] headers: {"date":"Fri, 15 Sep 2023 10:49:40 GMT","content-type":"application/json","content-length":"556","connection":"keep-alive","x-amzn-requestid":"fc7c352b-a448-490e-88c4-e2dcecef3a4e","x-amz-apigw-id":"LS1-wFLEIAMEMEg=","x-amzn-trace-id":"Root=1-650436c4-01769ae56f1f0c082df0bee0;Sampled=0;lineage=c8c2b0f2:0|bf95bacf:0"}
[9/15/2023, 6:50:27 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":"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/15/2023, 6:50:27 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":"CA3EA229345C","deviceName":"SwitchbotHubMini","deviceType":"Hub Mini","enableCloudService":true,"hubDeviceId":"000000000000"}],"infraredRemoteList":[{"deviceId":"02-202309141456-12140456","deviceName":"Clock","remoteType":"DIY Fan","hubDeviceId":"CA3EA229345C"}]}
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] devicesAPI StatusCode: 100
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] statusCode: 200 & devicesAPI StatusCode: 100
[9/15/2023, 6:50:27 AM] [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/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DeviceLists Length: 2
[9/15/2023, 6:50:27 AM] [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/15/2023, 6:50:27 AM] [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/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] Discovered Hub Mini: CA3EA229345C
[9/15/2023, 6:50:27 AM] [SwitchBot] Total SwitchBot Devices Found: 2
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] Discovered DIY Fan: 02-202309141456-12140456
[9/15/2023, 6:50:27 AM] [SwitchBot] Restoring existing accessory from cache: Clock DeviceID: 02-202309141456-12140456
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Using Platform Config Logging: debug
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Config: {"connectionType":"OpenAPI"}
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan: Clock accessory.context.FirmwareRevision: 2.1.1
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan: Clock RotationSpeed Characteristic was not removed/added, Clear Cache on Clock to remove Chracteristic
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan: Clock Swing Mode Characteristic was not removed/added, Clear Cache on Clock To Remove Chracteristic
[9/15/2023, 6:50:27 AM] [SwitchBot] [DEBUG] DIY Fan uuid: 02-202309141456-12140456-DIY Fan, (0f01fae2-2385-48b3-b7e3-4867a7c5627a)
[9/15/2023, 6:50:27 AM] [SwitchBot] Total IR Devices Found: 1
|
Can you try the latest beta: |
I updated this morning to @switchbot/homebridge-switchbot v2.9.1-beta.2
Restarted homebridge and still no curtains appearing.
|
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. |
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.
|
Thanks, just so much easier to read without the extra stuff. |
@bscheffel Did you change your config? |
Yes - I just got the Hub 2 and added the Curtain 3 to HomeKit via Matter. |
Well that will work too. But if you would have put your config back to what you put up above it should have worked. |
See this issue #816. If you set your config correctly Curtain 3 will display. |
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
Config for homebridge-switchbot
Screenshots
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
The text was updated successfully, but these errors were encountered: