Jump to content

Recommended Posts

Posted

Device: Shelly Pro 3
Firmware: 20240223-142037/1.2.2-g7c39781
Schedule: Turn ON, after Sunset with offset of 1h 20m

Problem: 

The device incorrectly calculates the scheduled on-time when the sunset occurs close to midnight.

  • Expected behavior:

    • On June 30, 2024, sunset was at 22:40. The relay should have turned on at 00:00 on July 1, 2024.
    • On July 1, 2024, sunset was at 22:39. The relay should have turned on at 23:59 on July 1, 2024.
  • Actual behavior:

    • The relay incorrectly skipped a cycle from June 30 and turned on at 23:59 on July 1, 2024 only.

Root cause:

It appears the device uses an incorrect calculation for the offset when the scheduled on-time crosses midnight.

Additional notes:

  • A similar issue might occur with Sunrise schedules when using negative offsets.
  • This issue is likely to occur in regions with long daylight hours.


image.png.0297638b28d83c86f8407f6d62eee430.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...