Jump to content


Photo
- - - - -

Daylight Savings Issues


  • Please log in to reply
99 replies to this topic

#91 kwschumm

kwschumm

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 153 posts

Posted 18 June 2020 - 09:44 PM

This thread has gone silent, have the DST bugs ever been repaired?

 

It seems the firmware download page is still on 5.3.10 from 2016.

 

I'm having time issues and figured I'd start with the latest firmware.

 

I'm using M1XEP with NTP, daylight savings time enabled and proper dates, proper +8 timezone offset for Pacific time and the displayed time is 3 hours behind the correct time.



#92 LarrylLix

LarrylLix

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1671 posts
  • Location:Bethesda, Ontario
  • Experience:guru
  • Software:Custom
  • Hardware:ISY-99, Custom
  • Tech:INSTEON, 1-Wire, Custom
  • Audio:Custom
  • CCTV:ip
  • Phone:Ooma

Posted 18 June 2020 - 10:33 PM

This thread has gone silent, have the DST bugs ever been repaired?

 

It seems the firmware download page is still on 5.3.10 from 2016.

 

I'm having time issues and figured I'd start with the latest firmware.

 

I'm using M1XEP with NTP, daylight savings time enabled and proper dates, proper +8 timezone offset for Pacific time and the displayed time is 3 hours behind the correct time.


There is no fix that works for all cases. Petition your government to dump DST.

 

Each program has to know the intent of the code writer.

 

What do you want your HA to do when there are two 2:30 AMs?
What do you want your HA to do when there is no 2:30 AM?


Edited by LarrylLix, 18 June 2020 - 10:35 PM.


#93 kwschumm

kwschumm

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 153 posts

Posted 19 June 2020 - 01:40 AM

There is no fix that works for all cases. Petition your government to dump DST.
 
Each program has to know the intent of the code writer.
 
What do you want your HA to do when there are two 2:30 AMs?
What do you want your HA to do when there is no 2:30 AM?


I just want it to tell the time accurately. The rest is a rule issue. Worst case don't use time specific rules between midnight and 4:00. Easy enough.

#94 LarrylLix

LarrylLix

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1671 posts
  • Location:Bethesda, Ontario
  • Experience:guru
  • Software:Custom
  • Hardware:ISY-99, Custom
  • Tech:INSTEON, 1-Wire, Custom
  • Audio:Custom
  • CCTV:ip
  • Phone:Ooma

Posted 19 June 2020 - 07:57 AM

I just want it to tell the time accurately. The rest is a rule issue. Worst case don't use time specific rules between midnight and 4:00. Easy enough.


That would mean never using a repeat every x minutes/hours. Wouldn't be much of a HA system without any cycling provisions.

 

Time is usually updated from the cloud X times per day but you didn't mention a particular system.

Oooops. I didn't see the Elk title at the top. I don't have one.


Edited by LarrylLix, 19 June 2020 - 07:59 AM.


#95 kwschumm

kwschumm

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 153 posts

Posted 19 June 2020 - 10:56 AM

The best way to implement timers is to make all timers relative. Keep a sorted queue of timers, in seconds until expiration, with the first to expire at the head of the queue. Decrement the timers by one each second. When the timer at the head of the queue reaches zero execute the action, reschedule the timer if needed and reinsert it in the sorted queue. Easy. When the clock jumps forward/back an hour add/subtract 3600 seconds to each timer in the list and execute the timer action right away if the timer goes negative when subtracting. Not perfect, nothing is when clocks move backwards, but it's about the best you can do and it's not difficult.

Edited by kwschumm, 19 June 2020 - 10:57 AM.


#96 LarrylLix

LarrylLix

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1671 posts
  • Location:Bethesda, Ontario
  • Experience:guru
  • Software:Custom
  • Hardware:ISY-99, Custom
  • Tech:INSTEON, 1-Wire, Custom
  • Audio:Custom
  • CCTV:ip
  • Phone:Ooma

Posted 19 June 2020 - 11:20 AM

That only works for some cases. This has been hashed to death in other forums. There is no universal technique to solve it except to petition the powers that be. Sent using Tapatalk

#97 kwschumm

kwschumm

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 153 posts

Posted 19 June 2020 - 04:02 PM

I have used this exact technique in several 24x7 embedded systems I have written and never had a complaint. It's not perfect but is a lot better than Elk has now.

 

Regardless, I guess it's useless to ask Elk to IMPROVE IT AND DOCUMENT THE BEHAVIOR since they've no interest in doing so.

 

Looks like M1 development is dead in the water.



#98 keepersg

keepersg

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 116 posts
  • Location:Portland, OR
  • Experience:average
  • Software:CQC, Harmony
  • Hardware:Elk M1, ISY-99
  • Tech:INSTEON, Z-Wave
  • Audio:Nuvo

Posted 20 June 2020 - 07:53 AM

This thread has gone silent, have the DST bugs ever been repaired?

 

It seems the firmware download page is still on 5.3.10 from 2016.

 

I'm having time issues and figured I'd start with the latest firmware.

 

I'm using M1XEP with NTP, daylight savings time enabled and proper dates, proper +8 timezone offset for Pacific time and the displayed time is 3 hours behind the correct time.

That's odd.  I have the exact same system, am on the Pacific coast and my M1 keeps perfect time.



#99 LarrylLix

LarrylLix

    Cocoonut

  • Registered
  • PipPipPipPip
  • 1671 posts
  • Location:Bethesda, Ontario
  • Experience:guru
  • Software:Custom
  • Hardware:ISY-99, Custom
  • Tech:INSTEON, 1-Wire, Custom
  • Audio:Custom
  • CCTV:ip
  • Phone:Ooma

Posted 20 June 2020 - 03:36 PM

That's odd.  I have the exact same system, am on the Pacific coast and my M1 keeps perfect time.


Keeping time wasn't the issue. It was keeping timers for HA.



#100 kwschumm

kwschumm

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 153 posts

Posted 20 June 2020 - 09:28 PM

That's odd.  I have the exact same system, am on the Pacific coast and my M1 keeps perfect time.


The time is fixed, which was really all I needed. After setting for three days with the wrong time I went to the XEP and forced it to update the time, at which point the time was corrected.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users