Template with no result

I have this template in my config:

  condition:
    - condition: template
      value_template: >
        {% if is_state('media_player.salotto_audio', 'playing') %}
        {% elif is_state("media_player.home", 'playing') %}
          true
        {% else %}
          false
        {% endif %}

When media_player.home is playing i get ‘true’ but when media_player.salotto_audio is playing i get no result at all.
Where is the error?

  condition:
    - condition: template
      value_template: >
        {% if is_state('media_player.salotto_audio', 'playing') or is_state('media_player.home', 'playing') %}
          true
        {% else %}
          false
        {% endif %}

Yes, you’re right… slowly, but learning… also with your helps… :slight_smile:

1 Like