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

Change the output of a template sensor

$
0
0

I have a sensor with an attribute ‘departure_time: 14:00’ but the departure time is in the wrong timezone, it should be 12:00 instead of 14:00. So I created a template sensor and I would like to change the output to 12:00 but I can’t figure it out how to…

{{ state_attr('switch.volkswagen_tiguan_departure_schedule_3', 'departure_time') }}

Output of the sensor at the moment: 14:00 and I want it to be 12:00

Can anyone help me with this template sensor? Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 109127

Latest Images

Trending Articles



Latest Images

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