this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hass: departures board on/off

Aria 4608934e df13081e

+15 -2
+15 -2
nix/hosts/lavender/home-automation.nix
··· 1 - { lib, ... }: 1 + { pkgs, lib, ... }: 2 2 let 3 - inherit (lib) mkAfter; 3 + inherit (lib) mkAfter getExe; 4 4 in 5 5 { 6 6 services.audio-receiver.enable = true; ··· 32 32 allow_bypass_login = true; 33 33 } 34 34 ]; 35 + }; 36 + 37 + services.home-assistant.config.shell_command = { 38 + departures_board_off = ( 39 + pkgs.writeShellScript "departures_board_off" '' 40 + ${getExe pkgs.curl} -v 'http://192.168.0.57/control?sleep=1&clock=0' 41 + '' 42 + ); 43 + departures_board_on = ( 44 + pkgs.writeShellScript "departures_board_on" '' 45 + ${getExe pkgs.curl} -v 'http://192.168.0.57/control?sleep=0' 46 + '' 47 + ); 35 48 }; 36 49 37 50 services.borgbackup.jobs.hass = {