SNTP Time Source
# Example configuration entry
time:
- platform: sntp
id: sntp_time
timezone: Europe/Sofia
servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 2.pool.ntp.orgConfiguration variables
servers (Optional, list of strings): Choose up to 3 NTP servers that are used for the clock source. Defaults to
0.pool.ntp.org,1.pool.ntp.organd2.pool.ntp.orgAll other options from Base Time Configuration.
ℹ️ Note
If your are using Manual IPs make sure to configure a DNS Server (dns1, dns2) or use only IP addresses for the NTP servers.
⚠️ Warning
Due to limitations of the SNTP implementation, on platforms other than ESP8266 and ESP32 this component will trigger
on_time_synconly once when it detects that the system clock has been set, even if the update was not done by the SNTP implementation! This must be taken into consideration when SNTP is used together with other real time components, where another time source could update the time before SNTP synchronizes.