Update binary_sensor.http.markdown

The sample call was missing -H "Content-Type: application/json" for the POST section, causing it to fail.
This commit is contained in:
tguerena 2016-07-22 14:22:29 -04:00 committed by GitHub
parent ececc2047d
commit f725b01f50

View File

@ -32,6 +32,7 @@ For a quick test `curl` can be useful to "simulate" a device.
```bash
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-d '{"state": "off", "attributes": {"friendly_name": "Radio"}}' \
http://localhost:8123/api/states/binary_sensor.radio
```