dashboard/tests/getHA.sh

11 lines
233 B
Bash
Raw Normal View History

2022-01-28 22:31:26 +00:00
#!/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