Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95480

Script service 400 response

$
0
0

@Fergmux wrote:

So I’ve got a server making http requests to homeassistant, and noticed recently the post requests to activate scripts have stopped working.

I can activate lights just fine with:

curl -X POST -H "Authorization: Bearer MYTOKEN" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "light.light_name"}' \
       https://my.hass.url/api/services/light/turn_on

but for my requests to activate a script that used to work:

curl -X POST -H "Authorization: Bearer MYTOKEN" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "script.script_id"}' \
       https://my.hass.url/api/services/script/turn_on

has started returning me a 400 error, anyone got any insight as to why this might be?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>