diff options
author | makefu <github@syntax-fehler.de> | 2022-09-23 23:41:30 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-09-23 23:41:30 +0200 |
commit | 3e8f855f60dfa5bf56ab3a1d1a54e0accccbd618 (patch) | |
tree | 85674a93388edfb7a0646b46aafc18d64d7aa0c6 /makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix | |
parent | 2dfde5dc6d37fb5bab8a1b658cfe7e5b21f5a2f4 (diff) |
ma ham: update
Diffstat (limited to 'makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix')
-rw-r--r-- | makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix b/makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix index bd36f02cd..26fec370f 100644 --- a/makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix +++ b/makefu/2configs/home/ham/media/arbeitszimmer_matrix.nix @@ -32,10 +32,12 @@ in services.home-assistant.config.automation = [ { alias = "Arbeitszimmer Matrix music action"; + mode = "queued"; trigger = [ { platform = "state"; entity_id = all_buttons; + to = "on"; # ignore 'unavailable' } ]; action = @@ -59,17 +61,11 @@ in } ) - (remote_action "b9" - ((say "Guter Song {{ states.sensor.the_playlist_song.state }}") ++ [ - { service = "rest_command.good_song"; } - ])) + (remote_action "b9" [ { service = "rest_command.good_song"; } ]) + (remote_action "b10" [ { service = "rest_command.bad_song"; } ]) - (remote_action "b10" - ((say "Schlechter Song {{ states.sensor.the_playlist_song.state }}") ++ [ - { service = "rest_command.bad_song"; } - ])) (remote_action "3" - ((say "Starte Lassulus Super Radio") ++ [ + ((say "Starte Lass") ++ [ { service = "media_player.play_media"; data = { media_content_id = "http://radio.lassul.us:8000/radio.mp3"; |