-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get time from ntpserver with DHCP #5283
Comments
Hi, Sorry, can't reproduce your issue. My pows are working fine. Please, check your network. This issue had happened before (as you saw when you have searched in issues) and most of the time is just a misconfiguration on the router or firewall. Just once was that public ntp servers were down for a couple of hours. Also, you can upgrade your device to latest Tasmota version from development branch 6.4.1.17 If you are super sure that your network is fine, may be you have a router that is not 100% compatible with esp8266 arduino core 2.4.2. You can try either latest Tasmota 6.4.1.17 with core 2.3.0 or with core 2.5.0. Thehackbox.org/tasmota/020300 or thehackbox.org/tasmota/020500 |
@Gwenselah make sure your DHCP server sends correct NTP option as well. Tasmota is based on Arduino core, which takes this info and makes it primary (which causes problem with DHCP servers sending bad or empty options for NTP) |
Hello, Kind regards. |
Come and join us at our discord. There were users with this problem. Might provide more help. |
Hi, Any news on this issue? |
No, I setup a ntp server on my raspberry pi, but nothing changed. I increased the debug log, but there is nothing in it, which would help. |
Now I think i got it. |
Very interesting! Thanks for sharing this. Thanks, now we have a workaround for people with this NTP issue for the DHCP in their router until something can be done in the code. |
Its a SDK issue - if NTP server exists (configured correctly or not) on the same IP as the DHCP server (no setting for NTP server necessary on DHCP settings) then the SDK automatically uses the NTP service it assumes to be good on the same IP of the DHCP server... or at least this has been my observation. |
So as it is SDK related you will have to use a workaround by adding one or two additional NTP servers using command |
@arendst it doesn't change anything. We've tried it with some discord users some time ago. The solution is to use DHCP server with proper NTP option configured in the lease. @Gwenselah you've discovered what I basically told you in my first response. |
@jziolkowski |
Closing this issue as it is has been answered. #5283 (comment) |
Describe the bug
Some of Tasmota Pow R2 does not get time from time server.
00:21:23 MQT: tele/sonoff/STATE = {"Time":"1970-01-01T00:21:23","Uptime":"0T00:20:24","Vcc":3.418,"SleepMode....
I tried timezone 99
I tried to setup the ntpserver to internal or external ntp server. I use ip or dns lookup.
I reseted the sonoff (reset 4) and reconfigured the device.
Firmware: Sonoff-Tasmota 6.4.1
Also, make sure these boxes are checked [x] before submitting your issue - Thank you!
status 0
:The text was updated successfully, but these errors were encountered: