Is it allowed to put templates in alias statements for conditions? e.g.
- alias: "Light off request from {{trigger.id}}"
conditions:
- condition: or
conditions:
- "{{ trigger.id.endswith('button_press') and button_press == 'turn_off' }}"
- "{{ trigger.id == 'homekit_turn_off' }}"
- "{{ trigger.id == 'alexa_turn_off' }}"
- "{{ trigger.id == 'all_lights_off' }}"
sequence:
- alias: "Disable killswitch"
service: input_boolean.turn_off
entity_id: !input occupancy_killswitch
- alias: "Turn on light"
service: light.turn_off
entity_id: !input light_entity_id
data: !input light_off_attributes
Ever since I added this in my blueprint I no longer have any statements in the “Trace Timeline” when analysing automation traces, but the automations are all working as expected.
Anyone know if it is related to the above and whether what I am doing is allowed?