From f725b01f50e275555e80bb6cb0117a159083ca41 Mon Sep 17 00:00:00 2001 From: tguerena Date: Fri, 22 Jul 2016 14:22:29 -0400 Subject: [PATCH] Update binary_sensor.http.markdown The sample call was missing -H "Content-Type: application/json" for the POST section, causing it to fail. --- source/_components/binary_sensor.http.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_components/binary_sensor.http.markdown b/source/_components/binary_sensor.http.markdown index dff711e5709..8e96f517918 100644 --- a/source/_components/binary_sensor.http.markdown +++ b/source/_components/binary_sensor.http.markdown @@ -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 ```