Boom! That's how home automation apps turn lights on.
Make sure to assign the value false to the variable isDay.
false
isDay