mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update binary_sensor.template.markdown
This commit is contained in:
parent
d05883210d
commit
2189bbda03
@ -124,7 +124,7 @@ binary_sensor:
|
|||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
people_home:
|
people_home:
|
||||||
value_template: >-
|
value_template: {% raw %}>-
|
||||||
{%- if is_state("device_tracker.sean", "home")
|
{%- if is_state("device_tracker.sean", "home")
|
||||||
or is_state("device_tracker.susan", "home")
|
or is_state("device_tracker.susan", "home")
|
||||||
or is_state("binary_sensor.office_124", "on")
|
or is_state("binary_sensor.office_124", "on")
|
||||||
@ -136,7 +136,7 @@ binary_sensor:
|
|||||||
True
|
True
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
False
|
False
|
||||||
{%- endif %}
|
{%- endif %}{% endraw %}
|
||||||
entity_id:
|
entity_id:
|
||||||
- device_tracker.sean
|
- device_tracker.sean
|
||||||
- device_tracker.susan
|
- device_tracker.susan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user