Good morning
For a mqtt device only I setup time component as sntp as well as a DNS server:
wifi:
networks:
ssid: "something"
password: "somethingelse"
manual_ip:
static_ip: 10.0.210.3
gateway: 10.0.0.1
subnet: 255.255.0.0
dns1: 8.8.8.8
time:
- platform: sntp
id: sntp_time
timezone: "Europe/Zurich"
on_time_sync:
then:
- logger.log: "Synchronized sntp clock"
But after flashing and connecting via mqtt I see that it tries ten times to synchronize and then gives up…so the logging message is never displayed:
[13:47:34][I][mqtt:216]: MQTT Connected!
[13:47:34][C][sntp:025]: Setting up SNTP...
[13:47:34][D][lilygo_t5_47.display:035]: Resetting periodic full update countdown to 0.
[13:47:34][I][app:062]: setup() finished successfully!
...
[13:47:38][I][mqtt:216]: MQTT Connected!
[13:47:38][C][sntp:025]: Setting up SNTP...
[13:47:38][D][sensor:127]: 'temperature': Sending state 20.20000 with 1 decimals of accuracy
[13:47:38][D][lilygo_t5_47.display:035]: Resetting periodic full update countdown to 0.
[13:47:38][I][app:062]: setup() finished successfully!
...
[13:47:42][I][mqtt:216]: MQTT Connected!
[13:47:42][C][sntp:025]: Setting up SNTP...
[13:47:42][D][lilygo_t5_47.display:035]: Resetting periodic full update countdown to 0.
[13:47:42][I][app:062]: setup() finished successfully!
...
[13:47:45][I][mqtt:216]: MQTT Connected!
[13:47:45][C][sntp:025]: Setting up SNTP...
[13:47:46][D][lilygo_t5_47.display:035]: Resetting periodic full update countdown to 0.
[13:47:46][I][app:062]: setup() finished successfully!
Any idea why sntp isn’t working here?
thanks in advance
richard