Skip to content

Offset for sunrise and sunset schedules #1122

@daanusr

Description

@daanusr

Checklist

  • I checked for similar existing issues (both open and closed) before posting.
  • I will participate in further discussion about this issue and can help by testing (if requested).

Card Version

v4.0.16

Component Version

v3.3.8

Bug description

Hello!
May i first of all thank all contributors for the genius idea for this card. It has simplified my automations by a lot, love the work you are doing!
On to the issue. I have a few sunrise/sunset dependent timers for garden lighting. They turn on exactly on sunrise and sunset, and i can add a positive offset (+0:30) for example. When i try to use a negative offset however, to make the lights turn on sooner (-0:30), the field turns red (it does that either way, also if it works), and turns the -0 internally into +0 so my 30 minute negative offset becomes a 30 minute positive offset. It only works for increments of hours (-1:00), since it does not support the "negative zero" in the hour field.
Could you please look at this? I had this issue for a longer while, and with every update checked if it was fixed, but so for not yet. I has been really weird over the last few versions though, so I hope it isn't a lot of work.
Thank you!

Steps to reproduce

  1. Edit a schedule
  2. Select sunset as start time
  3. Enter an offset which is negative and smaller than an hour (e.g. -0:30)
  4. Watch the timeline on top shift to a positive offset.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions