diff --git a/source/_components/binary_sensor.template.markdown b/source/_components/binary_sensor.template.markdown index 0aa9b4797b4..5cadc4bad20 100644 --- a/source/_components/binary_sensor.template.markdown +++ b/source/_components/binary_sensor.template.markdown @@ -12,7 +12,7 @@ ha_category: Binary Sensor 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 # Example configuration.yaml entry @@ -45,13 +45,12 @@ This example indicates true if a sensor is above a given threshold. Assuming a s sensor: platform: template sensors: - furnace_on: - value_template: {% raw %}{{ states.sensor.furnace.state > 2.5 }}{% endraw %} - friendly_name: 'Furnace Running - sensor_class: heat + furnace_on: + value_template: {% raw %}{{ states.sensor.furnace.state > 2.5 }}{% endraw %} + friendly_name: 'Furnace Running + sensor_class: heat ``` - ### {% 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/)