Is !include logging/history.yaml supposed to work?

First:
I was hoping this entry in my configuration.yaml would work,

recorder: !include logging/recorder.yaml
history: !include logging/history.yaml
logbook: !include logging/logbook.yaml
logger: !include logging/logger.yaml

… but I don’t even get the menu History showing up. When commenting out

history: !include logging/history.yaml

… and just enter history: it works fine

I was hoping to include all my PIRs in the History logging…
and no other binary_sensors , so I entered this in my recorder.yaml

binary_sensor.*_pir

Apparently this is not the right syntax.
How can I filter out just my PIR´s?

Here is my complete recorder.yaml

purge_keep_days: 5
purge_interval: 1
exclude:
  domains:
    - alert
    - camera
    - media_player
    - sun
    - calendar
    - device_tracker
    - group
    - switch
    - script
include:
  domains: 
    - automation
    - binary_sensor
    - sensor
    - switch
    - zwave
  entities:
    - sun.sun # Don't record sun data
    - sensor.last_boot # Comes from 'systemmonitor' sensor platform
    - sensor.date
    - binary_sensor.*_pir

Any considerations are most welcome :slight_smile:

I have logbook and history split but they are just in the config directory so just

logbook: !include logbook.yaml

I would guess maybe it’s the extra directory… . I would maybe try specifying the whole path or maybe it’s just not possible

Do the others work or just history? If just history can we see it?

Here is my history.yaml file

include:
  domains: 
    - automation
    - device_tracker
    - sensor
    - switch
    - zwave
  # entities:
  # - device_tracker.pals_iphone
  # - device_tracker.pals_iphone_bt
  # - device_tracker.xxx_iphone
  # - device_tracker.yyy_iphone
  # - device_tracker.e_golf

exclude:
  domains:
    - alert
    - camera
    - media_player
    - sun
    - calendar
    - group
    - script
    - time
  entities:
    - sensor.date
    - sensor.date_*
    - sensor.time
    - sensor.papir
    - sensor.tibber_nett

By entering the entity_ids one by one. The configuration options do not support wildcards.

1 Like