asynchronous states

This commit is contained in:
Devmel Apps
2022-11-22 14:54:14 +01:00
parent f3705d94a2
commit f504335c5b
8 changed files with 238 additions and 7 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bashio
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