-
Notifications
You must be signed in to change notification settings - Fork 6
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
No response in homekit #16
Comments
Do you have more devices on the same instance of Homebridge, and do those work? |
Yes, all devices work perfectly except the blinds.
|
I'm not sure if you noticed but the plugin was updated just earlier today, so please update it and try running homebridge with -D so |
Ah great. New output:
Apparently it automatically disconnects... when I press a button (both in the Home app or in the homebridge UI) the same thing:
Also, the device is always open according to Homebridge UI. Even though it's closed now. |
Oh, I suddenly get the following error, it's weird because it's saying it's coming from the Sonos ZP plugin but it reads the error in the homebridge-am43-blinds folder:
Also, when I start up the server I see another error before the device connected disconnected:
|
Looks like you are experiencing the same issue as #7 and #8. The bad part is that I'm unable to reproduce that bug myself and we have yet to find the cause (and a solution). It can occur when the motor is still connected to the blind engine app, but since you turned off Bluetooth I feel that's not the issue. Do you use any other Bluetooth HomeKit or Homebridge accessories? |
Hmm..that's a shame. For the sake of testing I removed the native 'blinds engine` app. Didn't do anything... I don't think that's it. Also tried |
Since you are a bit of a web developer. Do you mind to attempt to change a line in the plugin on your machine? You will need to find the plugin in the global modules folder on your machine, this depends on how you've installed node and NPM. The line is 319 in AM43Device.js. Change it from this if (!this.isConnected) { To this if (!this.isConnected || this.blindsControlCharacteristic == null) { That should rediscover the |
Also, I saw you added that you tried to do |
No, the errors (in homebridge logs) were before I tried that. Setting the permissions seems to be working fine and doesn't give any response. |
Just bit haha. I work everyday in Typescript/Javascript but making Homebridge plugins or working with Bluetooth is new to me.
I changed the line. Right now it's been scanning for 2 minutes for devices...seems it can't find any now:
Those 2 lines keep repeating. Ah the error I was talking about is when shutting down homebridge. Doesn't seem to be related:
UPDATE Seems to find it after clicking on open/close blinds in the accessoires tab. Then it disconnects again:
|
Hmm, just to check, you still have |
I actually had it as a number, not a string.I tried to be creative apparently :P Changing it didn't make a difference though. |
Hmm, then the motor is getting disconnected by something outside the plugin, and I have no idea what. Maybe it could be a range issue? Try moving the motor closer to the Pi. Btw. a string should still have been parsed to a number :) |
TIL ... :)
Ok....apparently it's range.... when setting it next to the Pi it works right away. Setting it 4 meters further it stops working. My kitchen is 8 meters away (no walls). Why did it work a few weeks/months ago though .... It's not like you switched to another bluetooth library or something right? |
It could be that a Pi firmware update reduced the power of the Bluetooth. Have a look online to see if people have similar issues. If that still doesn't work you could try an external Bluetooth adapter (that is compatible with Pi). Correction: On Linux (including the Raspberry Pi) you have to manually switch the device: https://github.com/abandonware/noble#multiple-adapters-linux-specific |
Thanks, I ordered the only one they have on CoolBlue so should be able to try it tomorrow :) Really hope it works though. Could really see the connection improvement by setting it 1-2 meters away from the Pi. Would be nice to have a pair of automated blinds upstairs in the bedroom too. Also, what's still weird is that the plugin says it's connected and then disconnected. The native app just keeps loading. Perhaps you could build in some sort of check of you get more then just the name to make sure there aren't more issues like this popping up? |
Update. It works! Thank you! I bought this one, but I'm sure any 4.0 dongle will work: https://www.coolblue.nl/product/236284/trust-bluetooth-4-0-usb-adapter.html It's easier then the link you provided. Steps for the next person:
|
Nice, I will add that to the troubleshooting section! |
This has solved all the problems for me. I now have a stable connection with the curtains and the curtains that were further away now work fine. Previously I sometimes had to restart homebridge during startup because it was not connected to one of the curtains. This has now been resolved. After this change, they now also work faster. I bought another through AliExpress Baseus Usb Bluetooth Adapter Dongle here is the link |
Hi there,
First of all, thank you for creating this plugin!
The plugin worked fine for a few weeks. Had some problems and got new wifi (TP-Link M9 mesh router) so I decided to do a complete reinstall of the raspberry pi.
Homebridge can find it but the Home app just keeps saying "No Response".
I tried:
"hap_interaction_timeout":"0"
I turned on debug mode, this are all the entries the plugin gives me, can you help me where to look?
And my config:
Screenshot of home app:
![IMG_0310](https://user-images.githubusercontent.com/7299359/97087717-57107300-162c-11eb-8e9e-e6b2d7bd9289.PNG)
Would really love to get this plugin to work so I can buy 5 more of these devices 😇
The text was updated successfully, but these errors were encountered: