I am moving towards an all packages based config. One thing I can’t move to the package is the recorder
component.
What I want to achieve is to have a base recorder component in my mail configuration file and a list of only those entities to include in the recorder in each package file. For example:
configuration.yaml
recorder:
purge_interval: 1
purge_keep_days: 3
weather.yaml
recorder:
include:
entities:
- sensor.dark_sky_temperature
- sensor.dark_sky_humidity
speedtest.yaml
recorder:
include:
entities:
- sensor.speedtest_download
This is not working, because I can only use the include:
once in the recorder component:
$ hassio ha check
ERROR
starting version 3.2.4
Testing configuration at /config
Failed config
homeassistant.packages.weather.recorder:
- Package weather setup failed. Component recorder duplicate key 'include'
...
recorder: [source /config/packages/weather.yaml:38]
include: [source /config/packages/weather.yaml:39]
entities: [source /config/packages/weather.yaml:40]
- sensor.dark_sky_temperature
- sensor.dark_sky_humidity
...
Successful config (partial)
homeassistant.packages.weather.recorder: