Fix indent

This commit is contained in:
Fabian Affolter 2016-07-14 09:58:33 +02:00
parent 630da83e99
commit 9cb62f4b62
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -12,7 +12,7 @@ ha_category: Binary Sensor
The `template` platform supports sensors which breaks out the state and `state_attributes` from other entities. The `template` platform supports sensors which breaks out the state and `state_attributes` from other entities.
To enable Template sensors in your installation, add the following to your `configuration.yaml` file: To enable Template binary sensors in your installation, add the following to your `configuration.yaml` file:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
@ -45,13 +45,12 @@ This example indicates true if a sensor is above a given threshold. Assuming a s
sensor: sensor:
platform: template platform: template
sensors: sensors:
furnace_on: furnace_on:
value_template: {% raw %}{{ states.sensor.furnace.state > 2.5 }}{% endraw %} value_template: {% raw %}{{ states.sensor.furnace.state > 2.5 }}{% endraw %}
friendly_name: 'Furnace Running friendly_name: 'Furnace Running
sensor_class: heat sensor_class: heat
``` ```
### {% linkable_title Switch as sensor %} ### {% linkable_title Switch as sensor %}
Some movement sensors and door/window sensors will apear as a switch. By using a template binary sensor, the switch can be displayed as a binary sensors. The original switch can then be hidden by [customizing.](/getting-started/customizing-devices/) Some movement sensors and door/window sensors will apear as a switch. By using a template binary sensor, the switch can be displayed as a binary sensors. The original switch can then be hidden by [customizing.](/getting-started/customizing-devices/)