addon-vscode icon indicating copy to clipboard operation
addon-vscode copied to clipboard

Config check flags template triggers as an error.

Open Mikefila opened this issue 7 months ago • 0 comments

When defining a template entity in yaml, triggers is flagged as shown below

Image

This is the example from the docs. It will pass HA's configuration checker and load as expected.

template:
  - triggers:
      - trigger: time_pattern
        # This will update every night
        hours: 0
        minutes: 0
    sensor:
      # Keep track how many days have past since a date
      - name: "Not smoking"
        state: '{{ ( ( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(default=0) }}'
        unit_of_measurement: "Days"

Studio code server version 5.19.3

Mikefila avatar May 24 '25 04:05 Mikefila