Fixed awareness of wife's schedule the next day
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: 6e4ad7b9e6...8fbc5016a5
@ -26,15 +26,6 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
off
|
off
|
||||||
{% endif %}
|
{% endif %}
|
||||||
work_tomorrow:
|
|
||||||
friendly_name: 'Work Tomorrow'
|
|
||||||
value_template: >-
|
|
||||||
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
|
||||||
{% if states.calendar.family_tinawork.attributes.start_time >= test + " 05:00:00" %}
|
|
||||||
on
|
|
||||||
{% else %}
|
|
||||||
off
|
|
||||||
{% endif %}
|
|
||||||
kallen_timer_remaining_minutes:
|
kallen_timer_remaining_minutes:
|
||||||
friendly_name: 'Kallen Timer Remaining Minutes'
|
friendly_name: 'Kallen Timer Remaining Minutes'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
"Tina is at work right now, she will be done at approximately {{ (state_attr('input_datetime.tina_workday_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
"Tina is at work right now, she will be done at approximately {{ (state_attr('input_datetime.tina_workday_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||||
{% elif is_state('input_boolean.work_today','on') %}
|
{% elif is_state('input_boolean.work_today','on') %}
|
||||||
"Tina has work today at {{ (state_attr('input_datetime.tina_workday_start','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
"Tina has work today at {{ (state_attr('input_datetime.tina_workday_start','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||||
{% elif is_state('input_boolean.work_today','off') and is_state('sensor.work_tomorrow','on') %}
|
{% elif is_state('input_boolean.work_today','off') and is_state('binary_sensor.tina_work_tomorrow','on') %}
|
||||||
"Tina has work tomorrow at {{ as_timestamp(strptime(state_attr('calendar.family_tinawork','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. "
|
"Tina has work tomorrow at {{ as_timestamp(strptime(state_attr('calendar.family_tinawork','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. "
|
||||||
{% elif is_state('input_boolean.work_today','off') and is_state('sensor.work_tomorrow','off') %}
|
{% elif is_state('input_boolean.work_today','off') and is_state('binary_sensor.tina_work_tomorrow','off') %}
|
||||||
"Tina appears to have tomorrow off from work. "
|
"Tina appears to have tomorrow off from work. "
|
||||||
{% else %}
|
{% else %}
|
||||||
"Tony is an idiot and appears to have broken my awareness of Tina's schedule. Boo this man. "
|
"Tony is an idiot and appears to have broken my awareness of Tina's schedule. Boo this man. "
|
||||||
|
Reference in New Issue
Block a user