Developers need suitable tools to develop home automation systems while enhancing quality and productivity. One solution is to use domain-specific languages (DSLs) within a model-driven approach. The Habitation DSL provides a powerful visual development environment, including a catalog of reusable functional units and a set of home automation interconnection primitives. The model-driven approach offers mechanisms to automatically generate code to enhance the quality and portability of home automation systems. The result is an Eclipse-based tool whose usability the authors have validated in a case study.