How could I go about wrapping a set of automations in a condition, so I don’t have to set the same condition for each automation? I have a input number and want to include automations depending on its value. For example something like this:
{% if states('input_number.my_number' == 1) %}
!include automations_1.yaml
{% elif states('input_number.my_number' == 2) %}
!include automations_2.yaml
{% else %}
!include automations_3.yaml
{% endif %}