A home automation framework