When I try to make an automation, it isn't possible to turn on the
lights before sunset when it's cloudy or clear. Normaly it's turn on the
lights 40 minutes before sunset, but when it's cloudy it's to late and
when it's clear it's to early. Any help...