Common code for wireless home automation nodes