Be aware folks - NTP bug - Edge/UI7

Hi all,

Just stumbled across a bug/issue that could have some wider implications under UI7.

Both my main modem/router and the Vera Edge device are plugged into the same socket outlet, I just inadvertently pulled the main power plug and then plugged it back in immediately. After the initial reboot of the devices all seemed okay…but Vera then proceeded to think the time was 1/1/2000 00:00 !! - this then started causing other issues with schedules/routines/scenes. I was fortunate to spot this and by simply recycling the power on the Edge once more, it was then able to get an NTP packet from the Internet and correct itself.

Clearly with having both the modem/router and the Edge power cycle at the same time, no NTP was able to come through and Edge defaulted to its basic settings.

Perhaps Edge would have sorted this itself over time, perhaps not - I didn’t wait to find out, but thought others should be aware of this.

Cheers

David

This is not a bug. It is a well known issue(mode of operation) for all Veras.

Vera hardware has no realtime clock. In order to know the time and for scheduled events to work, Vera must acquire the time from an internet time source at boot. If the internet is not available at boot, Vera will not have any concept of the time/date and will probably not recover until it is power cycled when the internet is available.

More technical:
By default Vera does not implement an NTP client, which is why it will not figure out the time on its own without being restarted. It is possible to install and implement an NTP client if needed/desired. “Instructions” on how to do so can be found in these forums. Generally speaking there is no need to install the NTP client unless you are installing Vera in a location without internet. In the no-internet case, you will need to provide an NTP time source on the LAN as well as installing the NTP client on Vera.

There are reasons to NOT run NTP.
NTP runs periodically and as a result uses memory.
Vera is a memory constrained device… So this might cause you to give a a plugin or cause instability if you are already near the memory limits.

And there is really no good way to tell because of the dynamic load on Vera and the fact that some things eat memory over time …like log files and memory leaks in the core of Vera.