mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
23 lines
798 B
YAML
23 lines
798 B
YAML
alias: Bridget travel sensor
|
|
mode: restart
|
|
sequence:
|
|
- service: input_text.set_value
|
|
data_template:
|
|
entity_id: input_text.person_bridget
|
|
value: >-
|
|
{% if is_state('input_boolean.bridget_home', 'on') %}
|
|
{% if is_state('input_boolean.bridget_is_awake','off') %}
|
|
Sleeping
|
|
{% elif is_state('input_boolean.bridget_in_bed','on') %}
|
|
In bed
|
|
{% else %}
|
|
{{ states("input_select.bridget_status_dropdown") }}
|
|
{% endif %}
|
|
{% elif is_state('binary_sensor.have_custody', 'off') or is_state('input_select.weaver_kids', 'Away') %}
|
|
With Sarah
|
|
{% elif is_state('input_boolean.clint_work_from_home', 'on') %}
|
|
At Childcare
|
|
{% else %}
|
|
Somewhere
|
|
{% endif %}
|