Splitting config for template:

I did something very similar but using a different YAML directive:

template: !include_dir_merge_list templates/

The templates sub-directory contains separate files:

  • binary_sensor.yaml
  • number.yaml
  • select.yaml
  • sensor.yaml
  • trigger.yaml