UTC to local time for a sensor to tts automation

You were right about using as_local but it would be employed for converting a datetime object from UTC to local.

In the following screenshot, if I were to remove as_local the resulting time would be UTC as opposed to local (19:26 instead of 15:26).

1 Like