update states scritp and add refresh status every 5 mins

This commit is contained in:
2026-07-07 19:48:59 +02:00
parent 04a0bef826
commit 0bea772784
4 changed files with 61 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
#!/usr/bin/with-contenv bashio
curl -o states.json -s -X GET -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/states
curl -o states.json -s -X GET -H "Authorization: Bearer ${HASS_TOKEN}" -H "Content-Type: application/json" http://${HASS_HOST}/api/states/$1