Skip to content

Instantly share code, notes, and snippets.

@sstratoti
Created July 5, 2024 02:16
Show Gist options
  • Save sstratoti/a98851b185fcec8d69ae96a7c90629ff to your computer and use it in GitHub Desktop.
Save sstratoti/a98851b185fcec8d69ae96a7c90629ff to your computer and use it in GitHub Desktop.
Creates the template sensors for the Tautulli REST Button Card I created.
# Now with all 10! Too big for the forum post, so sharing via gist.
template:
- sensor:
- unique_id: plex_session_1
name: Plex Session 1 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1)%}{{ state_attr('sensor.tautulli_activity','sessions')[0].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 1) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[0].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_2
name: Plex Session 2 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2)%}{{ state_attr('sensor.tautulli_activity','sessions')[1].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 2) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[1].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_3
name: Plex Session 3 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3)%}{{ state_attr('sensor.tautulli_activity','sessions')[2].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 3) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[2].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_4
name: Plex Session 4 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4)%}{{ state_attr('sensor.tautulli_activity','sessions')[3].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 4) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[3].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_5
name: Plex Session 5 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5)%}{{ state_attr('sensor.tautulli_activity','sessions')[4].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 5) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[4].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_6
name: Plex Session 6 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6)%}{{ state_attr('sensor.tautulli_activity','sessions')[5].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 6) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[5].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_7
name: Plex Session 7 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7)%}{{ state_attr('sensor.tautulli_activity','sessions')[6].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 7) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[6].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_8
name: Plex Session 8 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8)%}{{ state_attr('sensor.tautulli_activity','sessions')[7].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 8) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[7].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_9
name: Plex Session 9 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9)%}{{ state_attr('sensor.tautulli_activity','sessions')[8].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 9) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[8].transcode_decision }}{%endif%}
- sensor:
- unique_id: plex_session_10
name: Plex Session 10 (Tautulli)
icon: mdi:plex
state: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10)%}{{ state_attr('sensor.tautulli_activity','sessions')[9].state }}{%else%}off{%endif %}
attributes:
user: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].user }}{%endif%}
progress_percent: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].progress_percent }}{%endif%}
media_type: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].media_type }}{%endif%}
full_title: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].full_title }}{%endif%}
grandparent_thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].grandparent_thumb }}{%endif%}
thumb: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].thumb }}{%endif%}
parent_media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].parent_media_index }}{%endif%}
media_index: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].media_index }}{%endif%}
year: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].year }}{%endif%}
product: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].product }}{%endif%}
player: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].player }}{%endif%}
device: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].device }}{%endif%}
platform: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].platform }}{%endif%}
location: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].location }}{%endif%}
ip_address: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].ip_address }}{%endif%}
ip_address_public: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].ip_address_public }}{%endif%}
local: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].local }}{%endif%}
relayed: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].relayed }}{%endif%}
bandwidth: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].bandwidth }}{%endif%}
video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].video_resolution }}{%endif%}
stream_video_resolution: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].stream_video_resolution }}{%endif%}
transcode_decision: >
{% if (state_attr('sensor.tautulli_activity','sessions')|length >= 10) and (this.state !='off')%}{{ state_attr('sensor.tautulli_activity','sessions')[9].transcode_decision }}{%endif%}
@sstratoti
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment