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
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ Sample `curl` command:
|
|||
```bash
|
||||
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||
-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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue