Add additional example

This commit is contained in:
Fabian Affolter 2016-01-30 18:16:52 +01:00
parent 75a74e6a4e
commit 4f1cefd162

View File

@ -71,7 +71,6 @@ Always want to know your external IP address. [JSON Test](http://www.jsontest.co
To display the IP address, the entry for a sensor in the `configuration.yaml` file will look like this.
```yaml
# Example configuration.yaml entry
- platform: rest
resource: http://ip.jsontest.com
name: External IP
@ -85,7 +84,6 @@ The [glances](/components/sensor.glances/) sensor is doing the exact same thing
Add something similar to the entry below to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
- platform: rest
resource: http://IP_ADRRESS:61208/api/2/mem/used
name: Used mem
@ -93,3 +91,16 @@ Add something similar to the entry below to your `configuration.yaml` file:
unit_of_measurement: MB
```
### {% linkable_title Value for other Home Assistant instance %}
The Home Assistant [API](developers/rest_api/) is exposing the data from your attached sensors. If you are running multiple Home Assistant instances which are not [connected](/developers/architecture/#multiple-connected-instances) you can still get information from them.
```yaml
- platform: rest
resource: http://IP_ADDRESS:8123/api/states/sensor.weather_temperature
name: Temperature
value_template: {% raw %}'{{ value_json.state }}'{% endraw %}
unit_of_measurement: "°C"
```