-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
v2.0.0 - Beta Testers Needed #476
Comments
Made progress on push changes. Should be able to get a good working beta out soon. |
I'm having a problem with the switchbot lock. Error message below: [9/20/2022, 11:16:32 AM] [SwitchBot] Lock: Kitchen Set LockTargetState: 0 In fact this happens with every accessory that i use with switchbot. |
I'm seeing the same error messages additionally the lock's contact sensor always shows as being open (although the lock registers the change and shows its blue/green light every time the door is opened/closed) |
Same here Lock: Door lock failed pushChanges, Error Message: "The first argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object" |
Push Change support implemented for SwitchBot Devices, May still have issues with IR Devices. Please let me know. |
Locking and unlock work well! - FYI There is a slight delay in updating the status of the lock in the home app when either action is completed, whereas the switchbot app picks it up much faster. My curtains and lightstrip also work now. Unfortunately i do not have an IR devices to test |
@chinedu40, the SwitchBot app is using BLE, where as this plugin is sending a command to the API (Cloud) to make the change. I will add BLE support to the plugin, once node-switchbot supports it. |
Thanks for all your work on this @donavanbecker! The beta is working for the most part for me, including the lock, which was really exciting after waiting since support for the lock was removed. I say for the most part because I got this error a few times "Lock: Front Door failed pushChanges," but it worked in between and after. And just a piece of feedback, consider making those error messages a bit more descriptive if you'd like users to understand what they mean! I may have misinterpreted this, but I took the question of "did you even read the message?" to be a bit passive agressive in the API issue/thread, when I was just trying to help. But it was hard to conclude that pushing changes wasn't supported if the message simply said it failed (I remember it saying something about the OpenAPI, but that didn't suggest it wasn't implemented either). I'm happy to continue supporting the projects with my feedback, so I thought this would be helpful, too! |
Unfortunately that API isn't available yet. Once it is, I will implement. |
I noticed in the account config that the new "secret" was blank. Looks like it didn't get "translated" in my case. I used the SwitchBot app developer instructions and saw that it now generates the secret as well as the token. Pasted the secret into the Homebridge swicthbot account settings and I'm up and running! Jeff |
Awesome! Yes the openToken should have also been moved to the token parameter automatically for you also. I am guessing you saw a log that said restart homebridge/child bridge? |
Yes. And I had read the notes above that said a second restart would "migrate" the secret key. Not sure why it didn't for me. |
where did you see that note? |
Duh! Sorry. I misinterpreted the notes above thinking it would "migrate" the token to the secret. |
I just switched over this morning from OpenAPI to BLE on my Pi, just to remove the latency and additional point of failure as I don't require any of the other Switchbot cloud services. Seems to run fairly smoothly, hard to tell but there's definitely a few ms of speed gained by interacting via the Pi rather than the Hub Mini. Off-topic: Have you run any long-term battery tests of BLE from the Hub or the Homebridge device and noticed any performance differences? Is there an ideal scan duration or curtain update rate I could set that might extend the battery life? |
I have added an option to allow for making devices, external accessories. Please test this out. You will see this option under device settings. |
Could you clarify what making a device an "external accessory" means? Jeff |
you have your own pairing code so won't automatically show up in the home app when its connected to homebridge/child bridge. Like the TV does if you have an IR TV accessory. |
@martindinicolino @nyjklein, also if the single accessory is taking a long time to load it doesn't hold up the rest of the device on homebridge. Only downfall is you loose cache which would only matter in the case of IR Devices. |
thank you for the information |
Hi! I opened the issue #490, but I believe now that it belong to this topic. Could you help me? |
@Niklas31, You need to add your secret in from the SwitchBot app. See the Notes section of this Issue. |
Awesome! Worked like a charm. Now the only warning I have is I could not find scandurantion in settings to change it |
@Niklas31 you are using HOOBs right? Switch to homebridge. This plugin isn't developed for HOOBs. I would recommend moving to homebridge. |
OK, I will check on that. Thanks for the support. Everything is working perfect now (it is not passing the 2 extra accessories to HomeKit). |
Hey @donavanbecker I am testing out the beta but am having a hard time with setting up a new IR device. It looks like the plugin is recognizing an IR device in the logs, but it never prints the DeviceID such that it can be setup in the config. Here is what my logs look like after a child bridge restart: And relevant config section: |
Beta version 21 has removed all my switchbot and IR devices. |
@chinedu40, you need to set your connectionType. Also I will fix it so there is a default. |
How do i set my connectionType? |
@chinedu40, set your device, in the device config with its device id, then assign connection type. |
Also beta.21 shouldn't have deleted the devices. Only beta.20 had that problem. |
V2.0.0 has been released. If you have any issues please open a new issue with info needed to research. |
With the move from v1.0 to v1.1 SwitchBot API, there will be a lot of changes.
Please install the latest beta:
Click here to find out how to install Beta
Report Beta Issues here. I may request you to open separate issues if it is not related to something changed in the beta.
API Changes
Note
secret
key config is required to be set.openToken
config has been changed totoken
a process is in place to move youropenToken
config to the newtoken
config but requires you to restart homebridge/child bridge or you can just paste the yourtoken
into the newtoken
config and an additional restart will not be required.connectionType
config, this replaces theBLE
config.Both
will use BLE as the default connection and will use OpenAPI as a backup connection.OpenAPI
will only allow connections through the OpenAPI.BLE
will only allow connections through Bluetooth (BLE), .Disable
will disable all connections. This will also allow you to disable commands and refreshes for a specific device but leave it in HomeKit.Pull Request For Changes
#474
The text was updated successfully, but these errors were encountered: