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
HomeKit keeps thinking blinds are closing when not #2
Comments
Thanks for the report. It's a known bug related to the refresh thread stopped working - hence not updating the blinds states. It seems to be a noble(a bluetooth library this plugin requires on) bug but I'm looking into this. |
Thanks for reaching out! Let me know if there’s any more information you need. I am more than happy to help you track the root cause. To answer your question I do have multiple devices connected. Both my Soma Shades 2 are connected to the same Rasberry Pi. I am told the Pi itsef can handle multiple Bluetooth connections limited only RAM. In my case I have 4GB |
I have the same issue and mine setup is a shade and a bluetooth switch. When I first coded this plugin it works fine with only the shade. I'm assuming I'm using noble wrong or it simply doesn't support multiple bluetooth devices. |
Interesting... I wonder if it's the Bluetooth controller then... I don't have a dongle actually. I have a Pi 4, so it comes with an included Bluetooth chip. |
Just checked I'm using the on-board bluetooth as well. I'll see if I can get a dongle to test. |
I can confirm this bug - I can control the blinds in the Home app, but the blinds status are not correct in the Home app - keeps saying "opening" all the time. Would be great if this was working. |
do you have more than one blinds? |
Yes - I have six blinds. |
wow that's a lot! I'll try to get my hands on this issue this week |
@fisherwise thanks for the response. I think this issue of the platform not being able to get the current status of the blinds is also the reason why there is a secondary bug, where you can control each blind in the Home app, but only if you open it up to 99% or close it up to 1% - if you fully open or close in the home app, nothing happens. |
@fisherwise - I just added a 7th soma smart shade 2 to the setup. Looking forward to seeing if we can get this fix, as this is an awesome plugin, and more stable that the soma connect setup. |
@danielniemeyer @erwinloh just published a new version with proper handlement of errors. Please update the plugin in homebridge and let me know if the error persists. |
Just updated - it's actually worse, the blinds are no longer responsive. Nothing works. In the log, I see this error: [SOMAShades] noble is not running. waiting for it to power on... Which is not true - noble is running, as I use it for other plugins, which still work. |
@fisherwise see above - I've updated, and the log now says that noble is not running. I get the same error despite restarting services or rebooting the Homebridge server. Maybe revert the plugin to how it was before - at least I could still control the blinds. |
can you paste the full log of a homebridge restart? Normally you will get a |
@fisherwise 25/01/2021, 7:14:23 pm [SOMAShades] noble is not running. waiting for it to power on... Bear in mind I have run that command to run noble without root/sudo ages ago, and also again. sudo setcap cap_net_raw+eip $(eval readlink -f |
I downgraded to the previous version, but for some reason, none of the blinds showed up anymore in the home app. Weird. |
I've gone back to the latest version - the error is still the same: [SOMAShades] noble is not running. waiting for it to power on... Also, is there any way to force the discovery of the blinds so they show up in the Home app? All 7 have disappeared from the home app. At least in the previous version I could control them, albeit without Home knowing if they were open or closed. |
there's is a config change from previous version (the
do you have other plugin that uses noble? if so please try use the |
abandonware/noble#26 might be the ultimate solution...or a BLE gateway plugin of some kind |
@fisherwise - all good - I decided to get a separate Pi unit, flashed the new Soma Connect software onto it, and managed to get all 7 blinds working with controls and sensors accurate. I appreciate your work here, keep it up, and thanks for the updates! |
I have the same issue: |
managed to somehow fix the battery issue but the plugin does not work at all. [3/15/2021, 1:05:37 PM] [SOMAShades] discovered peripheral xxx , adding to accessories |
But... the peripherals are not those I uninstalled the plugin, removed config, reinstalled and reconfigured. same result. some more logs after loads of tampering.
|
@costispavlou could be. Have you tried removing the other 2 and leaving only one blind? |
I did, no change. |
the opening/closing issue is related to noble not able to connect multiple BLE devices. It will work sometime due to racing, just restart homebridge. |
no i haven't reinstalled homebridge, i reinstalled your plugin though numerous times |
this probably because of the caching in homebridge. I'll look into this. |
@fisherwise hey I was wondering if you have any updates on this one. |
I don't really have time recently to update the plugin. I think the best option now is to reinstall homebridge so you clear all the caches it has. |
nothing for months, from the developer. He has no time in dealing with updating the plugin. |
sorry i've been really busy recently. I'll hopefully get some work done but I just can't guarantee if it will work. in the meantime you can try to use the new bridge function providede by homebridge. It basically runs multiple instance of homebridge and you can seperate this plugin in its own homebridge instance. This will resolve your issues 1) since it's basically a new instance you'll get correct configured shades 2) if it's having problem connecting to shades just restart the child bridge without affecting other homebridge devices |
ok i guess I'll have to put some delay between each device polling... |
No worries, I understand. Unfortunately creating a child bridge also gave me more problems, same as costispavlou. Reverting back did not work, so now I just use the triggers in the original app. I am thinking of buying a new pi zero and just clone the original soma connect software, but since the pi zero is out of stock over here I will have to wait |
Describe The Bug:
Going into the Home app shows both my Soma Shades as actively closing when they are both sitting idling. If I open the accessory in the HomeBridge accessories page, they are both correctly listed as idle in the open state.
To Reproduce:
Expected behavior:
Expected Home app status to match homebridge and blinds actual status.
Logs:
Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.
Screenshots:
Environment:
The text was updated successfully, but these errors were encountered: