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

Combining templates

$
0
0

I have a sensor that imports time in UTC. Then I add 6 hours to the value. I have a second sensor that reforms the output as desired. My question is, Can these 2 templates be combined? I have been searching for a couple of days and cannot find a working solution. Any help would be greatly appreciated.

{{ states('sensor.last_update') | as_datetime - timedelta(minutes=360) }}

{{as_timestamp(states.sensor.last_update.state) | timestamp_custom("%a, %b %d, %-I:%M %p", )}}

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106737

Trending Articles



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