In Automations when selecting Choose under Actions, it would be helpful to be able to name the Options for easier reading in the visual editor.
Edit: Clarified that this request is for the visual editor.
In Automations when selecting Choose under Actions, it would be helpful to be able to name the Options for easier reading in the visual editor.
Edit: Clarified that this request is for the visual editor.
You can currently add the alias
option to each conditions
in a choose
. This lets you supply more information about the purpose of each conditions
.
Here’s an example:
alias: contrived_example
description: ''
trigger:
- platform: state
entity_id: input_number.test
condition: []
action:
- choose:
- alias: the_first
conditions:
- condition: template
value_template: '{{ trigger.to_state.state | int == 1 }}'
sequence:
- service: notify.persistent_notification
data:
message: First
- alias: the_second
conditions:
- condition: template
value_template: '{{ trigger.to_state.state | int == 2 }}'
sequence:
- service: notify.persistent_notification
data:
message: Second
default:
- service: notify.persistent_notification
data:
message: default
mode: single
Didn’t know this also… Handy
To clarify, alias
in conditions
can only be added and viewed when editing an automation’s YAML code. The Automation Editor doesn’t currently support adding the alias
option or displaying it in ‘visual editor’ mode.
And can we also get minimization along with the naming. Having it everywhere else in my massive choose columns but not per option is cumbersome.