Packages: Invalid config for 'template'

ta oublier de changer value_template: en state: pour le nouveau format.

template:
  - sensor:
      - name: "Sun Elevation"
        unique_id: sunelevation
        state: "{{ state_attr('sun.sun', 'elevation') }}"
      - name: "Sun Azimuth"
        unique_id: sunazimuth
        state: "{{ state_attr('sun.sun', 'azimuth') }}"

VS
ancien format

sensor:
  template:
    sunelevation:  #correspond a unique_id
      friendly_name: "Sun Elevation" #correspond a name
      value_template: "{{ state_attr('sun.sun', 'elevation') }}" #correspond a state
    sunazimuth:
      friendly_name: "Sun Azimuth"
      value_template: "{{ state_attr('sun.sun', 'azimuth') }}"

Comme @pascal_ha , j’ai dans mon configuration.yaml.
image
et les fichiers YAML dans /config/packages

1 « J'aime »