control lights in homeassistant

This commit is contained in:
htpc 2026-01-14 10:33:07 -08:00
parent d187c37f03
commit ef77c68b80

View file

@ -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
;;