mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[template][time] Add template time platform (#14838)
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
co-authored by
clydebarrow
parent
b8af6cb005
commit
ea4754e798
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user