When I first set up home automation I told my wife a story. A guy bought a robot vacuum and it went haywire every night. Hours on forums, days of troubleshooting. The cause: the outlet its dock was plugged into had a motion sensor that cut power at bedtime to save energy. So every night the dock went dead and the vacuum wandered off hunting for a charger.
The vacuum wasn't broken. The system around it was. I told her: if we live on this edge, some of our problems will look exactly like that.