Show system time

The system time on my Raspberry with HA in Docker seems to off sometimes. To watch that I’d like to show it in the dashboard. I was thinking of a template sensor giving me now(). The template as such works

{{ as_local(now()).strftime('%a %H:%M') }}

but no sensor helper is created. How can I do it right?
Danke.

There is an existing core integration called “Time & Date” which can create a time or a date sensor based on your server time/date, so you shouldn’t need template for it.

https://www.home-assistant.io/integrations/time_date

1 Like

Thank you. I had used search extensively, but that integration had not come up anywhere.