Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107239

Add offset time to a template time sensor

$
0
0

I used a template to give me a time for my next alarm.

{% if states('sensor.sm_a526u_next_alarm') not in ['unavailable', 'None'] %}
{{ (states('sensor.sm_a526u_next_alarm')|as_datetime|as_local).strftime('%H:%M') }}
{% else %} No Next Alarm{% endif %}

Which gives me
Next Alarm 06:33

I have an automation that kicks in 15 minutes after this for the coffee maker. How can I add 15 minutes to the template so I can show true brew time? Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107239


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>