homeassistant: Initial version of role

This commit is contained in:
Timo Makinen 2023-01-29 18:49:38 +00:00
parent f3fc1b3f63
commit 810e64dde7
6 changed files with 108 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/sh
set -eu
curl -sf -X POST -H "Content-Type: application/json" -d @- \
https://id.foo.sh/authcheck <<EOF
{"username": "${username}", "password": "${password}", "group": "foosh"}
EOF