Hi
I have a Youtube addon from HACS and I pull through a channel that subscribe to.
I then created a Sensor Template to make it, so that I get notified when they go live and this works great.
What I would like to do is use the secondary-info for ie the title of the last youtube released by the channel.
The information is here
#DrZzs
- platform: youtube
channel_id: UC7G4tLa4Kt6A9e3hJ-HO8ng
- platform: template
sensors:
youtube_drzzs:
friendly_name: "DrZzs Youtube"
value_template: "{% if is_state_attr('sensor.drzzs', 'channel_is_live', true) %}Streaming{% else %}Offline{%- endif %}"
entity_picture_template: https://yt3.ggpht.com/ytc/AAUvwnhlhlpCB18DWZazN_1J-3SJbodcHD8Szh8-n4Pt=s176-c-k-c0x00ffffff-no-rj
youtube_drzzs_title:
friendly_name: "DrZzs Youtube Title"
value_template: "{{ states.sensor.drzzs.state }}"
Is there a way of getting the sensor.youtube_drzzs_title to show as secondary info on the below ?
type: entities
entities:
- entity: sensor.youtube_drzzs
- entity: sensor.youtube_franck_nijhof
- entity: sensor.youtube_homeassistant
- entity: sensor.youtube_zackbarett
- entity: sensor.youtube_intermittech
show_header_toggle: false
title: You Tube Streaming
Thanks Martyn