-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Entities not leaving Unavailable state until after integration reload #235
Comments
Can confirm the issue here. Core 2024.7.2 |
My Ibeacon arrived, so I can test with more devices besides my smartphone. Your steps are correct, the only differences are: I'm already on the latest version, I tried to redo the download via hacs, but the download diagnostics option still didn't appear. I made a video, this time restarting the HA I had no problems, but when restarting the HOST the problem appeared. |
I came here to write up my own issue, but I think this might cover it. I recently converted a bunch of ESPresence nodes to Bermuda and I'm having a rough time of it. It seems like nodes just stop tracking my phone, and presence will be "Unknown" even when I'm sitting right next to the ESP32. Rebooting the ESP32 always fixes it, but I'm wondering if HA restarts are the issue. I'll do some testing with your repro steps and report pack; in the meantime, I just wanted to bump this thread so I get notified if you find a solution ;) |
Hi Seth, that's interesting, I hadn't considered that it could be related to the proxies, but it may be possible. Frankly I haven't been able to replicate the issue yet. On my systems it comes up fine every time. I do get proxies that stop reporting sometimes, and there's a few reasons for that to be the case, but I haven't seen them fail to come back after an HA restart, but it's entirely possible since they need to reconnect when HA reboots so if they're having trouble they might not manage to reconnect. I wouldn't expect a reload of just Bermuda to fix that though. Have you found that clicking "Reload" per the screenshot below restores operation, or just the esphome restart, so far? Some things to consider if your proxies stop sending updates:
Failing that, could you post one of your esphome yaml configs? I can take a look and see if there's anything that might be causing issues - BLE scanning does tax the esp32 a bit, so sometimes having other components active can make them less stable. I'll be interested to hear if reloading Bermuda causes different behaviour, too. I'm keen to try and get to the bottom of this one. |
@agittins thanks for the reply! The more I look into it the less I'm convinced I have the same issue as this one, because reloading the Bermuda integration didn't seem to make a difference, and today I had proxies stop working without an HA restart. I'm in the middle of opening a new issue but it will take me a bit to collect the debug logs and everything else. I can also do some testing with different interval settings and the like and report my results. I'm using D1 mini boards that are fully dedicated to the BLE proxy, so I can rule out issues w/ a C3 processor or other ESPHome tasks causing issues. I'm also going to try and repro this issue as it was reported, just to help determine if there's a common root cause or not. Stay tuned! |
come here to write about this lol so I have exactly the same issue, new everything all working but after a while it all goes unavailable ... always |
Hi @hellcry37, sorry you're having trouble! Can you do a 'download diagnostics' before and after the issue occurs? There's instructions on this comment: #235 (comment) If you can upload the two files it gives you I can see if I can work out what's going on. |
I've removed everything but ok, I'll reinstall it and help you debug, I'll try this tonight hope to have some debug til tomorrow. |
Hi all I encountered this the other day, and reloading the integration did not resolve it. I have the json debug info and debug logs at home and will attach them when I can. The fix was for me to change the batteries in the device I was tracking (my cat, via a pet fitness collar) - as soon as I did that, everything started working again. This is the only device I am tracking. I believe that the integration configuration screen indicating a system-wide issue with no devices being seen (above screenshot) is in error. I should note that I also rebooted the HA instance, rebooted the proxmox host (which has USB passthrough for the dongle), and eventually removed the Bermuda integration completely, rebooted HA, and reinstalled Bermuda. The reinstall was successful in that I could then see other devices and the dongle and proxies showed as online, but the device with low battery was not found. I'll upload the logs I have as soon as I can access them. |
Excellent, thanks! That did the trick - the diags and logs showed me what was going on - if there are no "available" configured devices at start-up, then Bermuda never got called to update later on even if a device appeared. This explains why some folk found it recovered after a reload - it was contingent on there being a configured device visible at the time, otherwise it would still not get any updates. I think the various presentations of this bug ARE NOW FIXED with the latest commit, which can be tested by updating to |
Great work! I had a feeling this might be due to me having only a single device tracked, whereas you @agittins probably have quite a lot more :) I've "updated" to main and will call out if there are any issues experienced. |
I was about to also add logs just happen again but I believe this is the same situation as jeremysherriff, thank you |
Awesome, fingers crossed that's sorted it! |
No issues so far |
I must be doing something stupid; I tried updating to main, but it fails with this log entry:
And sure enough, "github.com/agittins/bermuda/releases/download/main/bermuda.zip" gives me a 404. I went into HACS -> Bermuda -> Redownload, clicked to show beta versions, and then picked "main". Is that not the right process? |
@spetryjohnson you are correct, not sure why it doesn't work correctly for this integration/github repo.
I went with # 2 because it is easiest and didn't require removing and reconfiguring everything. |
Ugh. Yeah, I hadn't noticed that. I think this is because I recently changed the hacs.json to use the zip file releases, so that it would show version numbers in the HA gui. Looks like it might be broken for the 'default branch' feature though, or maybe I've got something set up wrong. I'll see what I can work out. It looks like perhaps using zip releases is mutually exclusive with being able to include the default branch version, which I don't understand: hacs/integration#3513 - seems to me it would make sense to use zips, but use a checkout for the default branch. Hmm. I'm going to revisit how I do that, because in-app version reporting is great, but being able to get folks to try out |
@agittins I suspect that is what the "show beta versions" toggle is for? As in, you may need to establish a beta/dev branch and promote changes through from there. |
My understanding is that show beta versions is specifically for releases tagged as beta versions. The "default branch" (which is |
Version of the custom_component
Burmuda v0.6.7
Configuration
HA:
Core2024.6.4
Supervisor2024.06.2
Operating System12.4
Frontend20240610.1
Esphome 2024.6.6
esphome config:
Describe the bug
If the device to be tracked is out of range of the esp board when restarting the HA, the entity remains unavailable until the integration is manually reloaded.
Debug log
The text was updated successfully, but these errors were encountered: