From 903dad9f034edc941fb550b6b1b9a48b2d94dcb9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Oct 2015 13:12:39 +0200 Subject: [PATCH] Add details about the variable --- source/components/sensor.rest.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/components/sensor.rest.markdown b/source/components/sensor.rest.markdown index 81433c677ba..c2b16a56c33 100644 --- a/source/components/sensor.rest.markdown +++ b/source/components/sensor.rest.markdown @@ -35,7 +35,7 @@ sensor: platform: rest resource: http://IP_ADDRESS/ENDPOINT method: POST - variable: 'temperature' + variable: 'temperature' or ['Temperatures', 0, 'CurrentReading'] payload: '{ "device" : "heater" }' name: REST POST sensor unit_of_measurement: "°C" @@ -47,7 +47,7 @@ Configuration variables: - **resource** (*Required*): The resource or endpoint that contains the value. - **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- - **name** (*Optional*): Name of the REST sensor. - **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.