I’ve been mucking about with Home Assistant for several months now after buying wifi lights (and shamefully haven’t been blogging about it). Home Assistant is a hugely configurable, Python-based home automation server. I recommend checking it out.
The first thing I set up is automation of our main lights. They turn off when we go out, and turn on when we arrive home. This works fine, but I’d also like the lights to turn off when not required during the day. Home Assistant natively knows about sunrise & sunset, so the obvious thing is to turn the lights off maybe 45 minutes after sunrise. This is fine on sunny days, but on rainy day the lights end up turning off while it’s still quite dim inside.