more homeassistant controls
This commit is contained in:
parent
f4b2f0ab77
commit
6085469a47
3 changed files with 24 additions and 14 deletions
|
|
@ -15,13 +15,18 @@ all(){
|
|||
sleep .2
|
||||
xdotool key Left
|
||||
;;
|
||||
"split_up" | "split_down")
|
||||
"split_up")
|
||||
debug "no op"
|
||||
;;
|
||||
"back")
|
||||
echo "toggling livingroom lights"
|
||||
"split_down")
|
||||
echo "downstairs lights off"
|
||||
source "$ROOT/.env"
|
||||
curl -X POST -d '' $LIVINGROOM_LIGHTS_ENDPOINT
|
||||
curl -X POST -d '' $DOWNSTAIRS_LIGHTS_OFF
|
||||
;;
|
||||
"back")
|
||||
echo "downstairs lights off"
|
||||
source "$ROOT/.env"
|
||||
curl -X POST -d '' $DOWNSTAIRS_LIGHTS_OFF
|
||||
;;
|
||||
"forward")
|
||||
echo "toggling kitchen lights"
|
||||
|
|
@ -29,10 +34,15 @@ all(){
|
|||
curl -X POST -d '' $KITCHEN_LIGHTS_ENDPOINT
|
||||
;;
|
||||
"split_right")
|
||||
bluetoothctl disconnect 4C:B9:9B:11:4B:31
|
||||
echo "toggling kitchen lights"
|
||||
source "$ROOT/.env"
|
||||
curl -X POST -d '' $KITCHEN_LIGHTS_ENDPOINT
|
||||
;;
|
||||
"split_left")
|
||||
toggle_res
|
||||
#toggle_res
|
||||
echo "toggling livingroom lights"
|
||||
source "$ROOT/.env"
|
||||
curl -X POST -d '' $LIVINGROOM_LIGHTS_ENDPOINT
|
||||
;;
|
||||
|
||||
### top buttons
|
||||
|
|
|
|||
|
|
@ -15,10 +15,6 @@ firefox_youtube(){
|
|||
sleep .2
|
||||
xdotool key k
|
||||
}
|
||||
# kiosk
|
||||
split_right(){
|
||||
xdotool key F11
|
||||
}
|
||||
# go to yt.com in shared container
|
||||
desktop(){
|
||||
helpers
|
||||
|
|
@ -40,14 +36,13 @@ firefox_youtube(){
|
|||
}
|
||||
|
||||
firefox_pbs(){
|
||||
firefox_init
|
||||
|
||||
split_up(){
|
||||
xdotool mousemove 500 300
|
||||
xdotool mousemove 900 900
|
||||
xdotool click 1 click 1
|
||||
}
|
||||
play(){
|
||||
xdotool mousemove 500 300
|
||||
xdotool mousemove 900 900
|
||||
xdotool click 1
|
||||
}
|
||||
desktop(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue