mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
21 lines
739 B
YAML
21 lines
739 B
YAML
alias: Kristy travel sensor
|
|
mode: restart
|
|
sequence:
|
|
- action: input_text.set_value
|
|
data_template:
|
|
entity_id: input_text.person_kristy
|
|
value: >-
|
|
{% if is_state('input_boolean.kristy_home', 'on') %}
|
|
{% if is_state('input_boolean.kristy_is_awake','off') %}
|
|
Sleeping
|
|
{% elif is_state('input_boolean.kristy_in_bed','on') %}
|
|
In bed
|
|
{% else %}
|
|
{{ states("input_select.kristy_status_dropdown") }}
|
|
{% endif %}
|
|
{% elif is_state('group.person_kristy', 'home') and is_state('input_boolean.kristy_home', 'off') %}
|
|
Near home ({{ states('input_select.kristy_status_dropdown') }})
|
|
{% else %}
|
|
Away
|
|
{% endif %}
|