mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
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:
parent
1a74879767
commit
d6793ad267
@ -126,13 +126,12 @@ binary_sensor:
|
|||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
YOUR_SENSOR:
|
YOUR_SENSOR:
|
||||||
sensor_class: opening
|
|
||||||
friendly_name: "Friendly name here"
|
friendly_name: "Friendly name here"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
|
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
|
||||||
open
|
on
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
closed
|
off
|
||||||
{%- endif -%}{% endraw %}
|
{%- endif -%}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -155,7 +154,6 @@ binary_sensor:
|
|||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
YOUR_SENSOR:
|
YOUR_SENSOR:
|
||||||
sensor_class: motion
|
|
||||||
friendly_name: "Friendly name here"
|
friendly_name: "Friendly name here"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user