mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 18:57:17 +00:00
Add details about the variable
This commit is contained in:
parent
5a4af8cbbd
commit
903dad9f03
@ -35,7 +35,7 @@ sensor:
|
|||||||
platform: rest
|
platform: rest
|
||||||
resource: http://IP_ADDRESS/ENDPOINT
|
resource: http://IP_ADDRESS/ENDPOINT
|
||||||
method: POST
|
method: POST
|
||||||
variable: 'temperature'
|
variable: 'temperature' or ['Temperatures', 0, 'CurrentReading']
|
||||||
payload: '{ "device" : "heater" }'
|
payload: '{ "device" : "heater" }'
|
||||||
name: REST POST sensor
|
name: REST POST sensor
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
@ -47,7 +47,7 @@ Configuration variables:
|
|||||||
|
|
||||||
- **resource** (*Required*): The resource or endpoint that contains the value.
|
- **resource** (*Required*): The resource or endpoint that contains the value.
|
||||||
- **method** (*Optional*): The method of the request. Default is GET.
|
- **method** (*Optional*): The method of the request. Default is GET.
|
||||||
- **variable** (*Optional*): Defines the unit of measurement of the sensor, if any.
|
- **variable** (*Optional*): Defines the variable or a list of element for complex responses to extract, if any.
|
||||||
- **payload** (*Optional*): The payload to send with a POST request. Usualy formed as a dictionary-
|
- **payload** (*Optional*): The payload to send with a POST request. Usualy formed as a dictionary-
|
||||||
- **name** (*Optional*): Name of the REST sensor.
|
- **name** (*Optional*): Name of the REST sensor.
|
||||||
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
|
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user