mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Fix indent
This commit is contained in:
parent
630da83e99
commit
9cb62f4b62
@ -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/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user