bitfocus / companion-module-homeassistant-server

MIT License
12 stars 8 forks source link

High CPU Load with a lot of entities in home assistant #42

Open minideezel opened 2 months ago

minideezel commented 2 months ago

I have a largish home assistant setup for my whole house. (250 devices, 2500 entities) and while the home assistant integration does work, the cpu load is very high (100% of a core) with this running. When I toggle off the home assistant connection cpu load drops down to basically nothing for the companion process.

My guess is it's because it's updating 2 variables per entity on some periodic basis. Unless there's something else that's also causing it. Is there anyway to get it to only update the entities that are actually being utilized?

Julusian commented 2 months ago

I've pushed an update to the module which reduced the cpu impact on my dev machine from 0.5% to 0.1%, and my home setup from 16% to 2.5%

Hopefully it gives similar results for you

AJolly commented 4 days ago

I've pushed an update to the module which reduced the cpu impact on my dev machine from 0.5% to 0.1%, and my home setup from 16% to 2.5%

Hopefully it gives similar results for you

Which build is this?

Julusian commented 4 days ago

I've pushed an update to the module which reduced the cpu impact on my dev machine from 0.5% to 0.1%, and my home setup from 16% to 2.5%

Hopefully it gives similar results for you

Which build is this?

It is in the 3.4 releases by now

AJolly commented 4 days ago

I've pushed an update to the module which reduced the cpu impact on my dev machine from 0.5% to 0.1%, and my home setup from 16% to 2.5% Hopefully it gives similar results for you

Which build is this?

It is in the 3.4 releases by now

Got it. Unfortunately I was considering downgrading from 3.4 - It seems to keep running the same powershell commands on my system over and over.
image