Bits and pieces for my home automation system