home-assistant / home-assistant/iOS

High CPU load on macOS

Open
#2,389 28 comments 4 reactions 0 assignees View on GitHub
bug mac
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

**Device model, version and app version**

Model Name: Macbook pro 16" 2019
macOS Version: 12.6.4 (21G526) monterey
App Version: 2023.2.1 (2023.452)
Safari Version: Version 16.4 (17615.1.26.101.9, 17615)

**Home Assistant Core Version**
Home Assistant 2023.8.0

**Describe the bug**
The OS X app uses a significant amount of CPU when it's simply idling in the background (window closed). I've already tried to disable as many sensors as I can but it doesn't appear to make much difference.

I should note that it's likely not the safari component because when opening home assistant in safari the CPU load is significantly less.

While I'm not too experienced in OS X development I can certainly help debug the issue (i.e. profile using xcode or instruments)

Restarting the app might reduce the cpu load a little but it's varying too much to be certain of that. In any case, when my computer is idling it's by far the most resource intensive app running, even though I've got 3 pycharm windows open, 3 vscode windows, 5 chrome windows with about 30 tabs in total. It is definitely using an excessive amount of CPU power.

**To Reproduce**

Run the Home Assistant app.

**Expected behavior**

No significant amount of CPU load while idling.

** Additional information**

I've included two samples, one after running for a while and one after a restart of the app.

[Sample of Home Assistant After restart.txt](https://github.com/home-assistant/iOS/files/12261169/Sample.of.Home.Assistant.After.restart.txt)
[Sample of Home Assistant.txt](https://github.com/home-assistant/iOS/files/12261170/Sample.of.Home.Assistant.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.