mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-03-01 03:51:36 +01:00
Add documentation for the new selecy entity detail query parameter (#3257)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
c1ec3cbea7
commit
e88cd78ee8
@ -268,6 +268,22 @@ a GET request to ``/select/house_mode`` could yield this payload:
|
||||
"value": "party"
|
||||
}
|
||||
|
||||
The detail parameter can be used to include available options in the response:
|
||||
|
||||
- **detail**: Set to ``all`` to include a list of available options.
|
||||
|
||||
For example GET ``/select/house_mode?detail=all`` could yield this payload:
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"id": "select-house_mode",
|
||||
"name": "House Mode",
|
||||
"state": "party",
|
||||
"value": "party",
|
||||
"option": ["party","sleep","relax","home","away"]
|
||||
}
|
||||
|
||||
POST requests on the other hand allow setting the select, the available
|
||||
method is ``set``. The following parameter can be used:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user