     @groups = {}
     @hosts = {}
 
-  deviceTypes:
+  deviceClasses:
     lights:
       rgb: enttec.RGBLight
 

        @hosts[hostName] = new Host hostOpts
        console.log "Host:", hostName, hostOpts.type
      else
        throw new Error "Unknown host type #{ ob.hostOpts }"

    for deviceClass, deviceMap of @setup.mapping


      for virtualId, deviceOpts of deviceMap
        console.log virtualId, deviceOpts

        if Device = @deviceClasses[deviceClass]?[deviceOpts.type]
          device = new Device deviceOpts
        else
          throw new Error "Unkdown device type #{ deviceOpts.type }"
