Files
hass_airsend-addon_source/addons/airsend/poststate.sh
T
2022-11-22 18:47:32 +01:00

6 lines
237 B
Bash

#!/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