25.10.2022, 11:55
You have 4 independent IF statements. This causes the light to flicker if more than one statement is true.
I think it makes more sense to create a scheduler tied to sunrise/sunset instead of manually specifying the time.
I think it makes more sense to create a scheduler tied to sunrise/sunset instead of manually specifying the time.