aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/lights
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin/lights')
-rwxr-xr-x.local/share/bin/lights5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/share/bin/lights b/.local/share/bin/lights
new file mode 100755
index 0000000..d76782f
--- /dev/null
+++ b/.local/share/bin/lights
@@ -0,0 +1,5 @@
+#!/bin/sh
+cmd="$1"
+[[ -z "$cmd" ]] && cmd="toggle"
+curl -X POST "$HASS_SERVER/api/webhook/$cmd"
+