Automatically restart ha-now-playing after a second
This commit is contained in:
parent
9286319589
commit
cbc93c46a0
1 changed files with 3 additions and 2 deletions
|
@ -103,9 +103,10 @@ in {
|
|||
# TODO: package as nix thingy
|
||||
"custom/now_playing" = {
|
||||
exec = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token";
|
||||
exec-on-event = true;
|
||||
exec-on-event = false;
|
||||
format = " ♪ {}";
|
||||
interval = 2;
|
||||
restart-interval = 1;
|
||||
return-type = "json";
|
||||
on-click = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token play-pause";
|
||||
on-scroll-down = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token volume-up";
|
||||
on-scroll-up = "${pkgs.ha-now-playing}/bin/ha-now-playing --host home.datarift.nl --entity media_player.sonos_woonkamer --token-file /run/secrets/ha_now_playing_token volume-down";
|
||||
|
|
Loading…
Reference in a new issue