Automatic system for commercial accounting of heat energy