diff options
author | lassulus <lassulus@lassul.us> | 2020-04-22 00:33:14 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-04-22 00:33:14 +0200 |
commit | 0bfff7d9813a3cb0e16a178f6145c62652eec662 (patch) | |
tree | 8420628c70b033884db57740418c709b2630e51d /makefu/2configs/ham/multi | |
parent | c49867b40327f83a18b956404875637ca379c1ba (diff) | |
parent | facef9b812de753d50ae1509ae7afcd522504aec (diff) |
Merge remote-tracking branch 'gum/20.03' into 20.03
Diffstat (limited to 'makefu/2configs/ham/multi')
-rw-r--r-- | makefu/2configs/ham/multi/the_playlist.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makefu/2configs/ham/multi/the_playlist.nix b/makefu/2configs/ham/multi/the_playlist.nix new file mode 100644 index 000000000..aa5ce85dc --- /dev/null +++ b/makefu/2configs/ham/multi/the_playlist.nix @@ -0,0 +1,26 @@ +{ + sensor = [ + { platform = "rest"; + name = "pl"; + resource = "http://prism.r:8001/current"; + scan_interval = 30; + json_attributes = [ "name" "filename" "youtube" ]; + } + { platform = "template"; + sensors = { + the_playlist_song = { + friendly_name = "Current Song"; + value_template = ''{{ states.sensor.pl.attributes['name'] }}''; + }; + the_playlist_url = { + friendly_name = "Song Youtube URL"; + value_template = ''{{ states.sensor.pl.attributes['youtube'] }}''; + }; + the_playlist_filename = { + friendly_name = "Song Filename"; + value_template = ''{{ states.sensor.pl.attributes['filename'] }}''; + }; + }; + } + ]; +} |