Have a rule like below. What i would like to do is replace the state word which is being read out by TTS. So instead of “on” let’s say “will light up” or instead of off “it will be dark i there”
How can that be done?
message: >-
Auto light {% if is_state('automation.kids_light_auto_on','on') == 'True' %}
will be bright
{% elif is_state('automation.kids_light_auto_on','on') == 'False' %}
will be dark
{% else %}
will be a disco
{% endif %}
Yup or errors. So had to go directly like below. But would love to hear if it can be done your way
message: >-
{% if is_state('automation.kids_light_auto_on','on') %}
Auto light will be bright
{% elif is_state('automation.kids_light_auto_on','on') %}
Auto light will be dark
{% else %}
Auto light will be a disco
{% endif %}