Fixed https://github.com/tarlepp/HomeAI/issues/2 issue.