Rewrite of Maraschino and Bleextop for home automation.