From ef77c68b80a03913dbbfe02aed72e688eba174ac Mon Sep 17 00:00:00 2001 From: htpc <> Date: Wed, 14 Jan 2026 10:33:07 -0800 Subject: [PATCH] control lights in homeassistant --- apps/default_commands.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/default_commands.sh b/apps/default_commands.sh index c7878d8..48f28bd 100644 --- a/apps/default_commands.sh +++ b/apps/default_commands.sh @@ -15,9 +15,17 @@ all(){ sleep .2 xdotool key Left ;; - "forward" | "back" | "split_up" | "split_down") + "split_up" | "split_down") debug "no op" ;; + "back") + echo "toggling livingroom lights" + curl -X POST -d '' $LIVINGROOM_LIGHTS_ENDPOINT + ;; + "forward") + echo "toggling kitchen lights" + curl -X POST -d '' $KITCHEN_LIGHTS_ENDPOINT + ;; "split_right") bluetoothctl disconnect 4C:B9:9B:11:4B:31 ;;