mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
alias: Marshall travel sensor
|
||||
mode: restart
|
||||
sequence:
|
||||
- service: input_text.set_value
|
||||
data_template:
|
||||
entity_id: input_text.person_marshall
|
||||
value: >-
|
||||
{% if is_state('input_boolean.marshall_home', 'on') %}
|
||||
{% if is_state('input_boolean.marshall_is_awake','off') %}
|
||||
Sleeping
|
||||
{% elif is_state('input_boolean.marshall_in_bed','on') %}
|
||||
In bed
|
||||
{% else %}
|
||||
{{ states("input_select.marshall_status_dropdown") }}
|
||||
{% endif %}
|
||||
{% elif is_state('group.person_marshall', 'home') and is_state('input_boolean.marshall_home', 'off') %}
|
||||
Near home ({{ states('input_select.marshall_status_dropdown') }})
|
||||
{% else %}
|
||||
Away
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user