I moved my ‘state’ to influxdb by this config:
host: a0d7b954-influxdb
port: 8086
database: homeassistant
username: !secret ha-influx-user
password: !secret ha-influx-pw
max_retries: 3
default_measurement: state
include:
domains:
- sensor
exclude:
domains:
- updater
entities:
- sun.sun
- sensor.time
- sensor.time_date
- sensor.date
- sensor.date_time
- sensor.date_time_iso
- sensor.yr_symbol
- group.weather
- sensor.unifi_download_speed
- sensor.unifi_upload_speed
And I have my recorder in MySQL:
# Set up external DB on HASSIO
db_url: !secret mysqlconnection
purge_keep_days: 14
exclude:
domains:
- updater
- camera
- device_tracker
- sun
- weather
- calendar
entities:
- sensor.time
- sensor.time_date
- sensor.date
- sensor.date_time
- sensor.date_time_iso
- sensor.yr_symbol
- group.weather
- sensor.paul_hibbert
- sensor.drzzs
- sensor.intermit_tech
- sensor.repairguydk
- sensor.the_hook_up
But is that good or bad with the new energy measurement and statistics? I think the last one with MySQL is good for that, right? But the first might be bad? Does the influxdb storing of state’s remove the storing of states in MySQL, or is it just stored both places?