Update README.md
This commit is contained in:
27
README.md
27
README.md
@@ -73,14 +73,25 @@ You can use a Markdown card in your Home Assistant dashboard to display a clean
|
|||||||
type: markdown
|
type: markdown
|
||||||
title: Active Dispatcharr Streams
|
title: Active Dispatcharr Streams
|
||||||
content: |
|
content: |
|
||||||
{% for stream in states.sensor | selectattr('attributes.channel_name', 'defined') | selectattr('entity_id', 'search', 'dispatcharr_') %}
|
{% set streams = states.sensor
|
||||||
**{{ stream.attributes.channel_name }} ({{ stream.attributes.channel_number }})**
|
| selectattr('attributes.channel_name', 'defined')
|
||||||
*Now Playing:* {{ stream.attributes.program_title }}
|
| selectattr('entity_id', 'search', 'dispatcharr_')
|
||||||
{% if stream.attributes.episode_title %}
|
| list %}
|
||||||
*Episode:* {{ stream.attributes.episode_title }} ({{ stream.attributes.episode_number }})
|
{% if streams %}
|
||||||
{% endif %}
|
{% for stream in streams %}
|
||||||
*Clients:* {{ stream.attributes.clients }} | *Resolution:* {{ stream.attributes.resolution }}
|
**{{ stream.attributes.channel_name }} ({{- stream.attributes.channel_number -}})**
|
||||||
***
|
|
||||||
|
*Now Playing:* {{ stream.attributes.program_title }}
|
||||||
|
|
||||||
|
{% if stream.attributes.episode_title %}
|
||||||
|
*Episode:* {{ stream.attributes.episode_title }} ({{- stream.attributes.episode_number -}})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
*Clients:* {{ stream.attributes.clients }} | *Resolution:* {{ stream.attributes.resolution }}
|
||||||
|
{% if not loop.last %}
|
||||||
|
***
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
No active streams.
|
No active streams.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user