MaxCube fix for device type. Initial support for EcoSwitch