Cpu usage problem

Hi, I have a fairly fresh installation of HA docker supervised, today I was configuring some things from within the system and I noticed that one process is taking up a lot of CPU.
python3 -m homeassistant --config /config
average of 30 to 80%
Can you suggest what I should check?

Take a look on your template sensors or templating on automation. Some queries can have high impact on CPU consumption.

can you be more specific where I should check it? I mean where I can check which component is the problem to try to fix/reinstall it

I would start on the configuration.yaml file, looking for a session starting by template and reviewing the sensors under that section. You can share here that part of your configuration.yaml if no sensitive information is there, so we can help reviewing or trying to duplicate the issue.

I think this is unlikely to be related to add-ons, but you can also go to each of your add-ons and check for their CPU usage.
Go to Settings \ Add-ons and click one by one, you will see a screen like this:

Also, under Settings / System / System Health you may found some useful information to help you troubleshooting this and looking for things taking too long during startup, etc.

And don’t forget to take a look on your logs under Settings / System / Logs.

1 Like

Okay, here’s the whole configuration.yaml, it’s pretty short because I’m just starting to configure it.


# Loads default set of integrations. Do not remove.
default_config:

http:
    server_port: 8080
    use_x_forwarded_for: true
    trusted_proxies:
      - 192.168.0.100
      - 192.168.0.0/24
      - 127.0.0.1
      - 172.30.32.3
      - 172.30.32.1
      - 172.17.0.5
      - 10.0.0.2
#log reported ipv4
      - 162.158.159.139
      - 172.69.55.59
      - 141.101.76.195
      - 141.101.98.91
      - 141.101.99.102
      - 141.101.105.87
      - 141.101.105.99
#cloudflare ipv4
      - 103.21.244.0/22
      - 103.22.200.0/22
      - 103.31.4.0/22
      - 104.16.0.0/13
      - 104.24.0.0/14
      - 108.162.192.0/18
      - 131.0.72.0/22
      - 141.101.64.0/18
      - 162.158.0.0/15
      - 172.64.0.0/13
      - 173.245.48.0/20
      - 190.93.240.0/20
      - 188.114.96.0/20
      - 197.234.240.0/22
      - 198.41.128.0/17
      #kurwa play
      - 172.17.0.4
# Text to speech
tts:
  - platform: google_translate
  
camera:
  - platform: xiaomi_cloud_map_extractor
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    draw: ['all']
    attributes:
      - calibration_points

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

I checked all 3 addons as you showed, and indeed none were the problem, just to be sure I stopped them and the CPU consuming process was still there.

I removed all unnecessary or quick to restore integrations, did a few reboots and the problem still persists :frowning: