control lights in homeassistant
This commit is contained in:
parent
d187c37f03
commit
ef77c68b80
1 changed files with 9 additions and 1 deletions
|
|
@ -15,9 +15,17 @@ all(){
|
||||||
sleep .2
|
sleep .2
|
||||||
xdotool key Left
|
xdotool key Left
|
||||||
;;
|
;;
|
||||||
"forward" | "back" | "split_up" | "split_down")
|
"split_up" | "split_down")
|
||||||
debug "no op"
|
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")
|
"split_right")
|
||||||
bluetoothctl disconnect 4C:B9:9B:11:4B:31
|
bluetoothctl disconnect 4C:B9:9B:11:4B:31
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue