initial commit

This commit is contained in:
daniel fusser
2026-06-21 15:35:58 +02:00
committed by dafu
parent ce5bbf3916
commit 49462fb909
49 changed files with 2269 additions and 0 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
#
set -a; . "${HOME}/.config/secrets/hass"; set +a
# curl -s -X GET \
# -H "Authorization: Bearer ${token}" \
# -H "Content-Type: application/json" \
# https://hass.dafu.dev/api/states
#
curl -s -X POST \
-H "Authorization: Bearer ${token}" \
-H "Content-Type: application/json" \
-d '{"entity_id":"switch.'${1}'"}' \
https://hass.dafu.dev/api/services/switch/toggle || notify-send "${1} failed"