agittins/bermuda

now: iOS outages, was: HACS breakage - There is no integration after installing version 7.1 with hacs

Opened this issue · 8 comments

Hello, after I deleted the old version (because I couldn't upgrade to the new version in hacs), I added agittins/bermuda integration to hacs again. After the installation is complete. There is no new integration. I found that the entire b ermuda was downloaded into custom-components.
My solution is to directly download the bermuda file to custom-components. But there is no version number!

截屏2024-11-14 16 11 11 截屏2024-11-14 16 11 22

You should try to fix the initial problem with HACs, as you are making things worse by stomping around in the filesystem :-) But I understand the urge to just get things working!

The version number will probably be empty because you have installed the source files, not the packaged release that is in the zip file - only the release zip file has version numbers in it.

I suggest you go back to HACS and try to sort that out, so that you won't have trouble with future updates. When you say:

because I couldn't upgrade to the new version in hacs

what was the problem? If you couldn't see how to upgrade, the trick is to click the three-dots in the top-right corner and choose "re-download" - that then lets you choose which version you want to install, and gives you more options.

What's the full path of the custom_components folder you installed Bermuda into? As long as its the same one that HACS uses (/homeassistant/custom_components) then hopefully just re-downloading will fix it for you. If you've put the custom_components folder somewhere else you might need to clean up the changes you made before things will behave normally.

This isn't a Bermuda problem, but I'll leave the issue open for a bit in case you need some help sorting it out - let me know how you go!

Thank you very much for your reply. I will try installing it again in HACS.。yes 、,the same one that HACS uses (/homeassistant/custom_components

Great - if you have trouble with HACS installing it there will probably be more info in the logs - it's quite possible there might be permissions issues depending on how you accessed the folder manually, but the log entries will probably help work anything out.

Okay, thank you very much. I downloaded bermuda again by adding agittins/bermuda to HACS. Then I downloaded it. Additionally. I did not delete my previous downloads. I used to download compressed files directly before. Then put the bermuda file in the custom_components path, as I mentioned before. After this operation, the integration can be added without a version number. Today, I downloaded it again from HACS without deleting the previous one. After this operation, the version number displayed 7.2. It seems to have succeeded. But could you please check if this operation is correct? Because after downloading HACS, the downloaded file bermuda-0.7.2 is in bermuda (which I added).
Also, it's the same issue as before. The phone will display 'not at home'. Actually, a phone frequently displays' away from home '. I have uploaded the log, please review it. Thanks again!

This is bermuda's file

This is a file and log showing frequent departures from home on the phone (iPhone 15 and iPhone 15 Pro)
截屏2024-11-16 10 30 22
截屏2024-11-16 10 30 54
config_entry-bermuda-01JCMWK8JXADAKZCRS7KH1MHQW-2.json

This is bermuda's file

WechatIMG537

WechatIMG536

HACS is a bit like a bloody nose - just keep your fingers out of it and it will be fine.

As long as it now shows the right version in Homeassistant, Settings, Devices and Services, Bermuda, then you should be all good.

Now, you have a separate issue, which is your iPhones going away for long periods.

Looking at your diagnostics, the intervals (how often Bermuda sees an advertisement) all look excellent - they are all around 1 to 2 seconds. This means that Bermuda, HA and your proxies all seem to be working very well.

I think the issue will be that iOS is shutting down the advertising when in certain power-saving modes. It seems there is not a good solution for this, other than to use the HA companion app "more often", and to have other things like app refresh, cloud sync, airdrop and other background services turned on, so that the bluetooth is more likely to be on all the time. I will tag the issue with the iOS dropouts so that if I do find a solution I can let you know, but for now it looks like there is nothing more that Bermuda can do, as it is your phones that are not transmitting.

Thank you very much! I checked Devices & Services > Bermuda, and the displayed version is as follows. It seems that Bermuda should be working fine.
截屏2024-11-16 16 01 09
Regarding the intermittent offline issue, let me provide some potential insights into the problem. I have two phones: an iPhone 15 and an iPhone 15 Pro, both running iOS version 18.0.1. The periods when they are intermittently marked as “not home” mostly occur between 9 PM and 1 AM. During the day, they run very well and remain stable. This timing information is provided in case it helps with the issue. Thank you!

Thanks for the extra info. I think this might be a common problem with later model iPhones, but I am not certain. So that I can gather more data from individuals, I am tracking the problem here: #375

You could try installing a COVID19 exposure tracking app, if one is available in your country, as they seem to advertise more reliably.

Another option would be to install the Room Assistant App via Testflight. I do not know if it is still current, it does not look like it has changed for 3 years. https://github.com/mKeRix/room-assistant-companion-ios

I don't have any other thoughts at this stage. Bermuda appears to be working fine, the problem appears to be the phones.