mirror of
https://github.com/esphome/esphome.git
synced 2026-09-12 15:57:33 +00:00
21 lines
426 B
YAML
21 lines
426 B
YAML
esphome:
|
|
name: get-time-tz-test
|
|
host:
|
|
api:
|
|
logger:
|
|
|
|
time:
|
|
- platform: homeassistant
|
|
id: ha_time
|
|
|
|
sensor:
|
|
# Exposes the standard offset of the effective timezone so the test can
|
|
# observe which GetTimeResponse messages changed it
|
|
- platform: template
|
|
name: "TZ Offset"
|
|
id: tz_offset
|
|
accuracy_decimals: 0
|
|
update_interval: 100ms
|
|
lambda: |-
|
|
return time::get_global_tz().std_offset_seconds;
|