[template][time] Add template time platform (#14838)

Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Pat Satyshur
2026-09-27 09:48:08 +00:00
committed by GitHub
co-authored by clydebarrow
parent b8af6cb005
commit ea4754e798
7 changed files with 174 additions and 1 deletions
+4
View File
@@ -3,6 +3,10 @@
time:
- platform: sntp # Required for datetime
id: sntp_time
- platform: template
id: template_offset_time
lambda: |-
return id(sntp_time).timestamp_now() + 3600;
wifi: # Required for sntp time
ap: