The document describes DogSim, a state chart simulator for domotic environments. It automatically generates state diagram models from an ontology description of a domotic system to enable simulation and validation of automation scenarios. DogSim uses templates to map domotic device instances to state machines and generates connectors between devices to model their interactions. It was tested on a model of a 6-room home with 95 devices and showed potential for application to real-world intelligent home environments.