thewatchman
thewatchman copied to clipboard
Ignore entities followed by a Jinja concatenation operator
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
+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
Same for
sensor.xxxxx{{....}}
Also, this pattern may be also useful:
sensor.xxxxx[[...]]
it is used in a custom:decluttering-card