iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Home Assistant Companion on macOS randomly opens on its own

Open adamfeldman opened this issue 1 year ago • 30 comments

Device model, version and app version

Model Name: MBP 14" 2021, M1 Max macOS Version: 13.5 App Version: 2023.4 (2023.460) Safari Version: 16.6 (18615.3.12.11.2)

Home Assistant Core Version

2023.8.1 (and numerous prior versions)

Describe the bug

The macOS Companion app will launch itself on my Mac without any action on my part. It is not due to e.g. an incoming notification. I have observed this behavior intermittently for ~months.

Others experiencing the issue: https://community.home-assistant.io/t/how-does-the-mac-app-keep-autostarting/583922 https://community.home-assistant.io/t/how-to-stop-ha-from-opening-automatically-on-macbook-pro/404429 https://community.home-assistant.io/t/macos-app-randomly-launching-itself/559377

To Reproduce

Expected behavior

Screenshots

Additional context

Thank you!

adamfeldman avatar Aug 12 '23 13:08 adamfeldman

I second that (MacOS 13.5 via OpenCore legacy patcher on a Non-Retina-Mid2012 MacBookPro 9.1)

LordMyschkin avatar Aug 15 '23 13:08 LordMyschkin

Not sure if this is related, but I just submitted this "bug" because it always opens on restart.

https://github.com/home-assistant/frontend/issues/17626

mikesalz avatar Aug 19 '23 01:08 mikesalz

It seems that usernoted requests launchd to start the Home Assistant companion application. It was stopped since 3:10 PM. Note how the application was launched almost exactly on the next hour.

Screenshot 2023-08-24 at 16 03 40

ustuehler avatar Aug 24 '23 14:08 ustuehler

FWIW, in my case I narrowed this down to Home Assistant.app being enabled in System Settings / Privacy&Security / Focus. If I disable it there, it stops auto-launching.

Looks like the app gets called by the OS even when it is disabled (or not present!) in the Login/background items pane.

Confusingly, no apps I know for detecting launching hooks (Knock Knock, Lingon X) can detect this. So if this is the actual launch mechanism, sounds to me like a malware problem waiting to happen.

hmijail avatar Aug 25 '23 10:08 hmijail

FWIW, in my case I narrowed this down to Home Assistant.app being enabled in System Settings / Privacy&Security / Focus. If I disable it there, it stops auto-launching.

@hmijail Nice! ..that sorted it for me as well 👍

RedNo7 avatar Aug 25 '23 10:08 RedNo7

FWIW, in my case I narrowed this down to Home Assistant.app being enabled in System Settings / Privacy&Security / Focus. If I disable it there, it stops auto-launching.

Unfortunately that does not help me. The HA app launches every time I restart my Mac. I only want it to run in the background.

BTW, have any devs addressed this issue? Seems to be ignored...

mikesalz avatar Aug 26 '23 01:08 mikesalz

FWIW, in my case I narrowed this down to Home Assistant.app being enabled in System Settings / Privacy&Security / Focus. If I disable it there, it stops auto-launching.

Unfortunately that does not help me. The HA app launches every time I restart my Mac. I only want it to run in the background.

BTW, have any devs addressed this issue? Seems to be ignored...

same here, it would be great if this issue could be addressed

martindinicolino avatar Sep 22 '23 12:09 martindinicolino

FWIW, in my case I narrowed this down to Home Assistant.app being enabled in System Settings / Privacy&Security / Focus. If I disable it there, it stops auto-launching.

Model Name: MBP 13" 16GB 2021, M1 Max macOS Version: 14.1 Sonoma Beta (23B5056e) App Version:Removed companion app Safari Version: 16.6 (18615.3.12.11.2)

Home Assistant Core Version

2023.8.1 (and numerous prior versions)

Describe the bug

The macOS Companion app will launch itself on my Mac without any action on my part. It is not due to e.g. an incoming notification. I have observed this behavior intermittently for ~months.

Others experiencing the issue: https://community.home-assistant.io/t/how-does-the-mac-app-keep-autostarting/583922 https://community.home-assistant.io/t/how-to-stop-ha-from-opening-automatically-on-macbook-pro/404429 https://community.home-assistant.io/t/macos-app-randomly-launching-itself/559377

To Reproduce

Expected behavior

Screenshots

Additional context

Thank you!

Same issue happening on my 2020 M1 MBP running the Beta Sanoma 14.1 (23B5056e). Went in and disabled under focus and will see if it keeps opening itself. I found that behavior quite odd as well- of course coming from a MS background not unusual until I thought that since I switched to Apple hardware- behavior is unix-like... as in things do what you expect them to nearly without fail if setup correctly. I certainly never expect a companion app to open itself when I have not told to open itself at login.

edit: Fail. Opened itself again. Checked and still turned off in focus. I'll follow the bug to see if there is anything I can contribute.

s1ckopsycho avatar Oct 09 '23 15:10 s1ckopsycho

Same here, 2020 MacBook Air with Intel i7 running on MacOS Sonoma 14.0, will be trying disabling with Focus mode

robigan avatar Oct 10 '23 10:10 robigan

Same here in Ventura 13.5.1. I have now disabled HA in Focus. Hoping that will help.

plufz avatar Oct 20 '23 12:10 plufz

Same here, 2020 MacBook Air with Intel i7 running on MacOS Sonoma 14.0, will be trying disabling with Focus mode

Can confirm it hasn't opened at all since.

robigan avatar Oct 22 '23 09:10 robigan

Happening to me, too.

PizzaPino avatar Nov 08 '23 12:11 PizzaPino

Just started happening for me too.

jackmcconnell avatar Jan 10 '24 10:01 jackmcconnell

Same problem for me. Very strange...

iMac Retina 5K, 27-inch, Late 2015

Nexulo avatar Jan 11 '24 14:01 Nexulo

Had the same issue, after reading this thread I disabled focus access and haven’t had the app open itself in months now. Strange that this doesn’t work for everyone.

sharkwhal avatar Jan 11 '24 15:01 sharkwhal

It’s still doing this constantly. It’s 100% not in my login items or allow in background. I’ve disabled Focus access. I’ve also disabled nearly all sensors leaving only battery state, battery level, and storage on. And still it opens every hour or so.

panoptican avatar Feb 05 '24 19:02 panoptican

Same and still here .. MBP M1 Pro 14" 2021 / Sonoma 14.3.1

errormastern avatar Feb 27 '24 12:02 errormastern

Happening to me as well and when it opens it's blank. M3 Pro 14" 2023 / Sonoma 14.4

DHernan avatar Mar 29 '24 22:03 DHernan

Same for me. MBP M1 Pro 14" 2021 / Ventura 13.6.3

homewirelessguy avatar Apr 01 '24 13:04 homewirelessguy

Had to uninstall. Definitely is the focus launching it. One of the updates now causes it to not crash but instead it has a memory leak which caused my Mac to slow down until I noticed it was "using" 70 GB of memory

DHernan avatar Apr 18 '24 20:04 DHernan

I can report this is still happening, driving me nuts, especially because it is most noticeable when I'm at work and don't even have access to HA being off my network.

Brenzito avatar Apr 26 '24 19:04 Brenzito