thewatchman icon indicating copy to clipboard operation
thewatchman copied to clipboard

Ignore entities followed by a Jinja concatenation operator

Open dummylabs opened this issue 2 years ago • 2 comments

Quoted entity names followed by either '+' or '~' operator most probably are only a part of real entity name and should not be added to the report as missing. Example: 'sensor.weather_' ~ location

dummylabs avatar May 10 '23 12:05 dummylabs

+1

I get a similar error on the following piece of automation code. timer.morning_ [missing] morning_routine.yaml

    action:
      - service: light.turn_on
        data_template:
          entity_id: "{{ trigger.event.data.entity_id|replace('timer.morning_', 'light.') }}"
          brightness_pct: 100

tinuva avatar Jun 19 '23 14:06 tinuva

Same for sensor.xxxxx{{....}}

Also, this pattern may be also useful: sensor.xxxxx[[...]] it is used in a custom:decluttering-card

ildar170975 avatar Jul 23 '23 18:07 ildar170975