From 457390bbe401bf48ff0461bab415a39a7a4f4393 Mon Sep 17 00:00:00 2001 From: WofWca Date: Mon, 1 Oct 2018 21:55:07 +0700 Subject: [PATCH] Update variables section format for aREST Binary Sensor (#6413) * Update variables section format * Add missing types --- .../_components/binary_sensor.arest.markdown | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/source/_components/binary_sensor.arest.markdown b/source/_components/binary_sensor.arest.markdown index 1cf17934b7f..5029ae1b278 100644 --- a/source/_components/binary_sensor.arest.markdown +++ b/source/_components/binary_sensor.arest.markdown @@ -28,11 +28,20 @@ binary_sensor: pin: 8 ``` -Configuration variables: - -- **resource** (*Required*): IP address and schema of the device that is exposing an aREST API, e.g., http://192.168.1.10. -- **pin** (*Required*): Number of the pin to monitor. -- **name** (*Optional*): Let you overwrite the name of the device. By default *name* from the device is used. +{% configuration %} +resource: + description: IP address and schema of the device that is exposing an aREST API, e.g., http://192.168.1.10. + required: true + type: string +pin: + description: Number of the pin to monitor. + required: true + type: int +name: + description: Let you overwrite the name of the device. By default *name* from the device is used. + required: false + type: string +{% endconfiguration %} Accessing the URL http://IP_ADDRESS/digital/PIN_NUMBER should give you the state of the pin inside a JSON response as `return_value`.