Other fixes

Apparently I don't get to make up configuration variables. Removing it anyway since few other components have it as an option
This commit is contained in:
DubhAd 2017-10-25 21:19:13 +01:00 committed by Fabian Affolter
parent 1a74879767
commit d6793ad267
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -126,13 +126,12 @@ binary_sensor:
- platform: template
sensors:
YOUR_SENSOR:
sensor_class: opening
friendly_name: "Friendly name here"
value_template: >-
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
open
on
{%- else -%}
closed
off
{%- endif -%}{% endraw %}
```
@ -155,7 +154,6 @@ binary_sensor:
- platform: template
sensors:
YOUR_SENSOR:
sensor_class: motion
friendly_name: "Friendly name here"
value_template: >-
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}