mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add doc about deleting binary sensor via HTTP API (#33281)
This commit is contained in:
parent
6fc2337277
commit
51bb07895b
@ -215,6 +215,13 @@ $ curl -X GET -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \
|
||||
}
|
||||
```
|
||||
|
||||
To delete the sensor, send DELETE request with curl
|
||||
|
||||
```bash
|
||||
$ curl -X DELETE -H "Authorization: Bearer LONG_LIVED_ACCESS_TOKEN" \
|
||||
http://localhost:8123/api/states/binary_sensor.radio
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
In this section you'll find some real-life examples of how to use this sensor, besides `curl`, which was shown earlier.
|
||||
|
Loading…
x
Reference in New Issue
Block a user