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", )}}