I cannot make out a pattern, it’s like every 20min influxdb blocks my raspberry pis CPU so hard, that pihole is failing and HA unavailable for a minute or so.
It all started after updating HA+influxdb. I can’t tell you which version i was running before.
I have updated HA and influx in the meantime, but it didn’t help (problem occured for over a month now)
My setup now:
HA: 0.94.4
influxdb: 3.1.0
Tell me what else you need to troubleshoot
Thanks
config:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 0
longitude: 0
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone:
# Customization file
customize: !include customize.yaml
# Enables the frontend
frontend:
# Enables configuration UI
config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
http:
#base_url:
#ssl_certificate: /ssl/certfile.pem
#ssl_key: /ssl/privkey.pem
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
influxdb:
host: 10.10.10.
port: 8086
database: home_assistant
username:
password:
max_retries: 10
default_measurement: state
include:
entities:
- sensor.kuchenbox_batt
- sensor.kuchenbox_humidity
- sensor.kuchenbox_pressure
- sensor.kuchenbox_temperature
- sensor.kuchenbox_uptime
- sensor.kuchenbox_uvir
- sensor.kuchenbox_uvvis
- sensor.kuchenbox_uvindex
- sensor.kuchenbox_tsllux
- sensor.io_temperature
- sensor.io_wifirssi
- sensor.io_battery
- sensor.io_uptime
- sensor.neon_temperature
- sensor.neon_humidity
- sensor.neon_pressure
- sensor.neon_wifirssi
- sensor.neon_battery
- sensor.neon_uptime
# Track the sun
sun:
# Sensors
sensor:
- platform: mqtt
name: "Kuchenbox_Temperature"
state_topic: "home/kuchenbox"
unit_of_measurement: '°C'
value_template: "{{ value_json.temperature }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_Humidity"
state_topic: "home/kuchenbox"
unit_of_measurement: '%'
value_template: "{{ value_json.humidity }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_Uptime"
state_topic: "home/kuchenbox"
unit_of_measurement: 'ms'
value_template: "{{ value_json.uptime }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_Pressure"
state_topic: "home/kuchenbox"
unit_of_measurement: 'hPa'
value_template: "{{ value_json.pressure }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_Batt"
state_topic: "home/kuchenbox"
unit_of_measurement: 'Volt'
value_template: "{{ value_json.volt }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_UVIR"
state_topic: "home/kuchenbox"
unit_of_measurement: 'UV-IR'
value_template: "{{ value_json.uvIR }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_UVVis"
state_topic: "home/kuchenbox"
unit_of_measurement: 'UV-Vis'
value_template: "{{ value_json.uvVis }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_UVIndex"
state_topic: "home/kuchenbox"
unit_of_measurement: 'UV-Index'
value_template: "{{ value_json.uvIndex }}"
force_update: true
- platform: mqtt
name: "Kuchenbox_TSLLux"
state_topic: "home/kuchenbox"
unit_of_measurement: 'TSL-Lux'
value_template: "{{ value_json.tslLux }}"
force_update: true
- platform: mqtt
name: "Io_Temperature"
state_topic: "home/Io"
unit_of_measurement: "°C"
value_template: "{{ value_json.temperature }}"
force_update: true
- platform: mqtt
name: "Io_uptime"
state_topic: "home/Io"
value_template: "{{ value_json.uptime }}"
unit_of_measurement: "ms"
force_update: true
- platform: mqtt
name: "Io_wifirssi"
state_topic: "home/Io"
unit_of_measurement: "dB"
value_template: "{{ value_json.wifirssi }}"
force_update: true
- platform: mqtt
name: "Io_battery"
state_topic: "home/Io"
unit_of_measurement: "Volt"
value_template: "{{ value_json.volt }}"
force_update: true
- platform: mqtt
name: "Neon_Temperature"
state_topic: "home/Neon"
unit_of_measurement: "°C"
value_template: "{{ value_json.temperature }}"
force_update: true
- platform: mqtt
name: "Neon_Humidity"
state_topic: "home/Neon"
unit_of_measurement: "%"
value_template: "{{ value_json.humidity }}"
force_update: true
- platform: mqtt
name: "Neon_Pressure"
state_topic: "home/Neon"
unit_of_measurement: "hPa"
value_template: "{{ value_json.pressure }}"
force_update: true
- platform: mqtt
name: "Neon_uptime"
state_topic: "home/Neon"
value_template: "{{ value_json.uptime }}"
unit_of_measurement: "ms"
force_update: true
- platform: mqtt
name: "Neon_wifirssi"
state_topic: "home/Neon"
unit_of_measurement: "dB"
value_template: "{{ value_json.wifirssi }}"
force_update: true
- platform: mqtt
name: "Neon_battery"
state_topic: "home/Neon"
unit_of_measurement: "Volt"
value_template: "{{ value_json.volt }}"
force_update: true
# Text to speech
tts:
- platform: google_translate
service_name: google_say
# Cloud
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
system_health:
Have you find a solution or an alternative ?
On my side on a raspberry pi 3 I see every day at 6h10 AM a memory peak usage (10% on the memory during 15 minutes.
I have the same issue now on Raspberry PI 3. influxdb spiked my “% CPU waiting for I/O” to over 90%. I had to reboot a couple of times just to have a chance to stop the influxdb container before it made the entire system unresponsive. I have been running HA for about a month now on hassio. This only happened after the upgrade to the new version 0.100.2. I have read a few places that setting:
store-enabled = false
may help. If only I could find some information on where the conf file is within the container and how to set this option.