mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
fix error in switch/turn_on example (#1988)
Corrected CURL bash command ( thanks to David): '$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \ -H "Content-Type: application/json" \ -d '{"entity_id": "switch.christmas_lights", "state": "on"}' \ http://localhost:8123/api/services/switch/turn_on'
This commit is contained in:
parent
00a1b09386
commit
42be2b1e1b
@ -418,7 +418,7 @@ Sample `curl` command:
|
|||||||
```bash
|
```bash
|
||||||
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"entity_id": "switch.christmas_lights", "state": "on"}' \
|
-d '{"entity_id": "switch.christmas_lights"}' \
|
||||||
http://localhost:8123/api/services/switch/turn_on
|
http://localhost:8123/api/services/switch/turn_on
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user