mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
alias: Clint travel sensor
|
||||
mode: restart
|
||||
sequence:
|
||||
- service: 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_7', 'home') and is_state('input_boolean.clint_home', 'off') %}
|
||||
near home ({{ states('input_select.clint_status_dropdown') }})
|
||||
{% elif not is_state('device_tracker.pixel_7', 'not_home') %}
|
||||
at {{ states('device_tracker.pixel_7') }}
|
||||
{% else %}
|
||||
somewhere
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user