Hi all,
I’m attempting my first Blueprint for home assistant and I’ve got the basics sorted. However, I’m struggling to find the correct options for an input selector that will dynamically list the available sources for my media player entity.
I’ve tried the attribute selector type and the template selector but I’m unable to access the source list.
My current code is
input:
shield_source:
name: Shield Input Source
description: Select the source input that you want the Shield to switch to.
selector:
template:
{{ state_attr('media_player.android_tv_192_168_1_41', 'source_list') }}
This code errors when trying to import the Blueprint.
while parsing a flow mapping in "<unicode string>", line 11, column 12: {{ state_attr('media_player.andro ... ^ expected ',' or '}', but got '<scalar>' in "<unicode string>", line 11, column 78: ... _tv_192_168_1_41', 'source_list') }}
The full blueprint can be found here