mirror of
https://github.com/Clortox/dashboard.git
synced 2026-03-18 07:27:58 +00:00
Add home assistant test script
This commit is contained in:
10
tests/getHA.sh
Executable file
10
tests/getHA.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
API_KEY=$(pass gluttony/homeassistant/API)
|
||||
IP_ADDR="192.168.1.104"
|
||||
|
||||
curl -X GET \
|
||||
-H "Authorization: Bearer $API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-o out.json \
|
||||
http://$IP_ADDR:8123/api/states
|
||||
Reference in New Issue
Block a user