adaptive-lighting icon indicating copy to clipboard operation
adaptive-lighting copied to clipboard

Unconventional sunrise and sunset times .

Open 00schteven opened this issue 3 years ago • 5 comments

I am trying to configure Adaptive lighting for my indoor garden. I would like lights to come on at 16:00 and off at 04:00. Setting manual Sunrise and sunset times in the configuration returns this error:

ValueError: Test: The sun events ('sunset', 'solar_noon', 'sunrise', 'solar_midnight') are not in the expected order. The Adaptive Lighting integration will not work! This might happen if your sunrise/sunset offset is too large or your manually set sunrise/sunset time is past/before noon/midnight.

I think I can set the server location or clock to a time zone more compatible, but it would be nice to maintain a local time zone for the rest of the system.

00schteven avatar Mar 17 '21 23:03 00schteven

I agree, this should be possible and the verification code for the time input is probably too restrictive

RubenKelevra avatar Jul 31 '21 15:07 RubenKelevra

I never considered this use case. It should indeed be possible to support this case.

basnijholt avatar Jul 31 '21 19:07 basnijholt

@00schteven I believe I've implemented this in #535

if someone could test, that'd be great!

th3w1zard1 avatar Apr 04 '23 02:04 th3w1zard1

Been a while since this lol but I'm testing using this version now and it appears to be working

b-rad15 avatar Nov 02 '23 22:11 b-rad15

Rebased #535 in #830

b-rad15 avatar Nov 03 '23 08:11 b-rad15