6 lines
227 B
Bash
6 lines
227 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
|
|
payload=`echo $2 | base64 -d`
|
|
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
|