4 lines
173 B
Bash
4 lines
173 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
curl -o states.json -s -X GET -H "Authorization: Bearer ${HASS_TOKEN}" -H "Content-Type: application/json" http://${HASS_HOST}/api/states/$1
|