Home automation, thoughts, code and snippets