mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
23 lines
876 B
YAML
23 lines
876 B
YAML
alias: Clint travel sensor
|
|
mode: restart
|
|
sequence:
|
|
- action: input_text.set_value
|
|
data_template:
|
|
entity_id: input_text.person_clint
|
|
value: >-
|
|
{% if is_state('input_boolean.clint_home', 'on') %}
|
|
{% if is_state('input_boolean.clint_is_awake','off') %}
|
|
sleeping
|
|
{% elif is_state('input_boolean.clint_in_bed','on') %}
|
|
in bed
|
|
{% else %}
|
|
{{ states("input_select.clint_status_dropdown") }}
|
|
{% endif %}
|
|
{% elif is_state('device_tracker.pixel_10_pro', 'home') and is_state('input_boolean.clint_home', 'off') %}
|
|
near home ({{ states('input_select.clint_status_dropdown') }})
|
|
{% elif not is_state('device_tracker.pixel_10_pro', 'not_home') %}
|
|
at {{ states('device_tracker.pixel_10_pro') }}
|
|
{% else %}
|
|
somewhere
|
|
{% endif %}
|