This document describes a lab course on smart spaces and ambient intelligence that was included in a postgraduate degree program. The course asked student groups to propose, develop, and demonstrate simple smart environment applications using Smart-M3, an open source interoperability platform. The course design was developed around the preliminary results of the European Project SOFIA. Students were introduced to key concepts and tools like semantic data representation using RDF and OWL ontologies. They then developed projects using a provided design style and application development process.