mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
23 lines
791 B
YAML
23 lines
791 B
YAML
alias: Emmett travel sensor
|
|
mode: restart
|
|
sequence:
|
|
- action: input_text.set_value
|
|
data_template:
|
|
entity_id: input_text.person_emmett
|
|
value: >-
|
|
{% if is_state('input_boolean.emmett_home', 'on') %}
|
|
{% if is_state('input_boolean.emmett_is_awake','off') %}
|
|
Sleeping
|
|
{% elif is_state('input_boolean.emmett_in_bed','on') %}
|
|
In bed
|
|
{% else %}
|
|
{{ states("input_select.emmett_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 %}
|