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
@@ -2,4 +2,4 @@
payload=`echo $2 | base64 -d`
echo -en $payload | curl -s --data-binary @- -X POST -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/states/$1
echo -en $payload | curl -s --data-binary @- -X POST -H "Authorization: Bearer ${HASS_TOKEN}" -H "Content-Type: application/json" http://${HASS_HOST}/api/states/$1