Update variables section format for aREST Binary Sensor (#6413)

* Update variables section format

* Add missing types
This commit is contained in:
WofWca 2018-10-01 21:55:07 +07:00 committed by Fabian Affolter
parent e5baab532e
commit 457390bbe4

View File

@ -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`.