How to ensure the "carbon peaking and carbon neutrality" goal is a crucial problem for China with good performance, low cost and limited time. As a pillar industry, the manufacturing industry need offer more great potential helps. In this paper, for the intelligent workshop, firstly, an energy consumption architecture, based on mutual inductance sensing technology & a multi-granularity production line energy consumption modeling, is put forward. Secondly, the device-level sensing technology demonstrates the detailed implementation for the multi working condition machines whose power is unknown. And then, the research devoted the basic aspects of the proposed multi-granularity production line energy consumption modeling and summarized the implementation elements of 3-matrix (the attribute attributes, power attributes and cumulative timing attributes). Above the 2 sections, the robot and SMT production lines case studies are presented separately. Results show that the architecture can effectively sense and model the energy consumption of the devices and the workshop, which provides an available method for the fine management and control of energy consumption and energy efficiency. Through this study, we hope to provide some reference ideas for future researchers.