Configuration.yaml Options for save entrys

Hello,

I setup into my configuration yaml the floowing:

influxdb:
  host: localhost
  port: 8086
  database: homeassistant
  username: ***
  password: ***
  max_retries: 3
  default_measurement: state
  exclude:
    sensor:
      - sensor.myTestMqttDayliyPowerConsumption
  include:
    domains:
       - weather
       - sensor

recorder:
  purge_keep_days: 1
  auto_purge: true
  purge_interval: 1
  include:
    domains:
      - weather
      - switch
      - sensor
      - light
  exclude:
    sensor:
      - sensor.myTestMqttDayliyPowerConsumption

All sensor data save into both database but for example the pruge who should delete all data after 1 day from sqlite seems not working I still have more old sensor data there.
Also I was try to exclude some of my sensor from both it is impossible they still track down into database.

Could some one let me know how to solve this and made it work? I was try also with reboot after chnage config this also not help.

Best,
Sebastian

This is not being excluded because it is not your entity id:

Entity ids do not have capital letters in them. Look in Developer Tools → States for the actual id.

Hi Ok it was now my mistake by writing. It was for exmple

state_id: sensor.home_energy_consumption

But I also not make it work with this. :frowning:

The exclude just stops data being recorded from when the exclude was added. It does not remove data from before this time. You will have to edit the database to remove that.

I was now change to:

recorder:
  db_url: **connectionstring**
  exclude:
    entity_globs:
       - sensor.daily_power_*
       - sensor.total_power_*

influxdb:
  host: localhost
  port: 8086
  database: homeassistant
  username: **username**
  password: **password**
  max_retries: 3
  default_measurement: state
  exclude:
    entity_globs:
       - sensor.daily_power_*
       - sensor.total_power_*
  include:
    domains:
       - weather
       - sensor

Then I was reboot the system whole HA on RPI I was restart and re open Node-Red and press button to send MQTT to HA and there is no data. :slight_smile: But it need each time reboot whole system? Or is there some smart solution that it not need reboot because reload yaml files not help.