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?