Hi all,
Always blown away by how helpful everyone is here. I am looking to incorporate an or statement to the following so that I can capture multiple states for a fireTV. I would like to show the source if the firetv is “idle” or “playing” and “Off” if anything else. Not sure how to accomplish with the shorthand if statement syntax.
- type: template
entity: media_player.fire_tv_192_168_1_183
content: >-
{{ state_attr(entity, 'source') if is_state(entity, 'playing') else
'FireTV Off' }}
icon: phu:firetv