fashberg / WThermostatBeca

Open Source firmware replacement for Tuya Wifi Thermostate from Beca and Moes with Home Assistant Autodiscovery
344 stars 71 forks source link

NTP does not work #202

Closed aik closed 1 year ago

aik commented 1 year ago

The fw is 1.22. The time is:

Time-Valid: | Yes
-- | --
2036-02-07 17:31:18
39600
182 Seconds ago
182 Seconds ago
0 sec

the log is:

trace: sendActualLocalTimeToBeca 2086018100 + 0 days: 36.02.06 17:28:20 (/1=0) (dow: 4)
trace: commandCharsToSerial: 55 aa 00 1c 00 08 01 24 02 06 11 1c 00 04, ChckSum 0x81
trace: sending heartBeatCommand
trace: Heap Info HeartBeat: MaxFree: 22304, Uptime: 10
trace: commandCharsToSerial: 55 aa 00 00 00 00, ChckSum 0xff
trace: sendActualLocalTimeToBeca 2086018110 + 0 days: 36.02.06 17:28:30 (/1=30) (dow: 4)
trace: commandCharsToSerial: 55 aa 00 1c 00 08 01 24 02 06 11 1c 1e 04, ChckSum 0x9f
trace: sending heartBeatCommand
trace: Heap Info HeartBeat: MaxFree: 22352, Uptime: 20
trace: commandCharsToSerial: 55 aa 00 00 00 00, ChckSum 0xff

The server is on the gateway 192.168.10.200 and works:

aik@ole ~/hass> ntpdate 192.168.10.200
{"time":"2023-06-30T21:12:12.387062+1000","offset":0.003622,"precision":0.001915,"host":"192.168.10.200","ip":"192.168.10.200","stratum":2,"leap":"no-leap","adjusted":false}

STD/DST are 1,4,1,3,600/1,10,1,2,660, TZ=99 (Sydney/Australia) What is missing?

aik commented 1 year ago

fixed itself after reflashing :-/