diff --git a/node-red/projects/NerdFlows b/node-red/projects/NerdFlows index f105fa4..47f89e7 160000 --- a/node-red/projects/NerdFlows +++ b/node-red/projects/NerdFlows @@ -1 +1 @@ -Subproject commit f105fa471ec26fad839f75672c0255ecc1b0fdd4 +Subproject commit 47f89e798dbd9adf3e6cb1b65fbeb4d76bf88a2a diff --git a/sensors/time.yaml b/sensors/time.yaml index 114e788..007be91 100644 --- a/sensors/time.yaml +++ b/sensors/time.yaml @@ -31,6 +31,18 @@ {% else %} off {% endif %} + kallen_timer_remaining_minutes: + friendly_name: 'Kallen Timer Remaining Minutes' + value_template: >- + {% set f = state_attr('timer.kallen_timer','finishes_at') %} + {{ '00' if f == none else + (as_datetime(f) - now()).total_seconds() | timestamp_custom('%M', false) }} + kallen_timer_remaining_seconds: + friendly_name: 'Kallen Timer Remaining Seconds' + value_template: >- + {% set f = state_attr('timer.kallen_timer','finishes_at') %} + {{ '00' if f == none else + (as_datetime(f) - now()).total_seconds() | timestamp_custom('%S', false) }} - platform: time_date display_options: