Recorder - Exclude Template Entities or domain

Hello everybody.

I would like to exclude my Template Entities or domain of recorder.

  • If I put the entities created in config, it gives an error when verify configuration. (entity does not exist)
  • If I put Template in Exclude Domains, nothing happens, template entities still getting logged into Logbook.

Do anyone knows how to do it? Or a workaround?

Here is the entity I would like NOT to record:

sensor:
  - platform: huawei_solar
    host: '192.168.68.105'
  - platform: template
    sensors:
     sun2000l_5ktl_pv01_voltage:
        value_template: "{{ state_attr('sensor.sun2000l_5ktl', 'pv_string_01_voltage') }}"

Logbook:

15 de junho de 2020

16:10:00
sun2000l_5ktl_pv01_voltage changed to 323.2

This will exclude both sensors.

recorder:
  exclude:
    entities:
      - sensor.huawei_solar
      - sensor.sun2000l_5ktl_pv01_voltage

I’m making an assumption about the entity name of the huawei_solar sensor.

1 Like

Good! Thanks @123 . You picked up my fault…

I was not writing sensor in front of name declaration…

I was doing:

  • sun2000l_5ktl_pv01_voltage

Instead of:

  • sensor.sun2000l_5ktl_pv01_voltage
1 Like