What is the use of alias in conditions and actions in automations?

Hi. There is one thing I cannot figure out

I am used to giving my automations (YAML defined) an alias as this gives them a friendly name in listings

But I can see in the documentation that you can also give conditions

condition:
  alias: "Temperature between 17 and 25 degrees"
  condition: numeric_state
  entity_id: sensor.temperature
  above: 17
  below: 25

and actions/scripts

action:
      - alias: "Repeat the sequence UNTIL the conditions are true"
        repeat:
          sequence:
            # Run command that for some reason doesn't always work
            - service: shell_command.turn_something_on
              etc etc

These aliases must have a purpose but I cannot figure out for what? Where are they visible? If it is just for comments you would use a #-priced comment line

The documentation says many places that you can use aliases but I have yet to find a place where it is stated what good it is for

It’s just for you to have a name for the action in the sequence or condition. Like a comment.

Keep in mind that # comments don’t work with the automation editor.

3 Likes