From f7850b07eb13ffce5f6a01192d3d5cf1e26743a4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Sep 2015 11:08:41 +0200 Subject: [PATCH] Add variable description --- source/components/sensor.arest.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/components/sensor.arest.markdown b/source/components/sensor.arest.markdown index b39d493602d..3d7f63d48e7 100644 --- a/source/components/sensor.arest.markdown +++ b/source/components/sensor.arest.markdown @@ -26,6 +26,16 @@ sensor: unit: '%' ``` +Configuration variables: + +- **resource** (*Required*): IP address and schema of the device that is exposing an aREST API, e.g. http://192.168.1.10. + +- **monitored_variables** array: + + - **name** (*Required*): The name of the variable you wish to monitor. + - **unit** (*Optional*): Defines the units of measurement of the sensor, if any. + + The variables in the `monitored_variables` array must be available in the response of the device. As a starting point you find below a sketch for the Arduino device family. ```c