Setup failed for timer: Component failed to initialize

When I changing in configuration.yaml
form

timer: !include timer.yaml

to

timer: !include_dir_merge_list timers

I am getting an error in the logfile:
Setup failed for timer: Component failed to initialize.
I enabled debug level of logging, but it is no additional information in log file. Only:

2019-04-01 21:36:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up: - timer Please check your config., notification_id=invalid_config>

What am I doing wrong?

I haven’t tried this with timer exactly, but my guess is you should be using this instead:

timer: !include_dir_merge_named timers

See this doc section for more details.

1 Like